Commit fbb8c3fe authored by Sebastian's avatar Sebastian

small adjustments

parent 45b12db1
/*jslint nomen: true*/
function test_iframe_append () {
var tele = document.createTextNode(" . doing the loading . ");
document.body.appendChild(tele);
}
// can't use RSVP here because its not loaded (neccessarily)
function test_inject_lib(libsrc, resolve) {
......
......@@ -5445,7 +5445,10 @@
});
})
.then(function () {
iframe.contentWindow.test_iframe_append();
ok(
!iframe.contentWindow.hasOwnProperty("renderJS"),
"RJS NOT available before inject"
);
return new RSVP.Promise(function (resolve, reject) {
iframe.contentWindow.test_inject_lib(
"../node_modules/rsvp/dist/rsvp-2.0.4.js",
......@@ -5463,7 +5466,10 @@
})
.then(function () {
var rjsLoaded = iframe.contentWindow.rJS !== undefined;
ok(rjsLoaded, "injected RJS available in iframe");
ok(
iframe.contentWindow.hasOwnProperty("renderJS"),
"RJS available after inject"
);
})
.then(function () {
iframe.contentWindow.rJS.manualBootstrap();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment