Fix editor in iFrame should be the code

This should be changed
This commit is contained in:
Berkeley Martinez
2015-11-23 17:29:05 -08:00
parent 6638412cc3
commit f9bdc32474

View File

@ -7,8 +7,7 @@ window.__$(function() {
var assert = chai.assert; var assert = chai.assert;
var tests = parent.tests; var tests = parent.tests;
var common = parent.common; var common = parent.common;
var code = common.editor.getValue(); var editor = common.editor.getValue();
var editor = common.editor;
// grab the iframe body element // grab the iframe body element
var body = document.getElementsByTagName('body'); var body = document.getElementsByTagName('body');
// change the context of $ so it uses the iFrame for testing // change the context of $ so it uses the iFrame for testing