Added basic support for IFrames, disabled a test which we don't take into account.
This commit is contained in:
parent
b5bf00a373
commit
69ef5fac9e
2 changed files with 28 additions and 8 deletions
9
src/jquery/coreTest.js
vendored
9
src/jquery/coreTest.js
vendored
|
@ -21,17 +21,14 @@ test("$()", function() {
|
|||
$('<p>\r\n</p>');
|
||||
ok( true, "Check for \\r and \\n in jQuery()" );
|
||||
|
||||
/* // Disabled until we add this functionality in
|
||||
var pass = true;
|
||||
try {
|
||||
var f = document.getElementById("iframe").contentDocument;
|
||||
f.open();
|
||||
f.write("<html><body></body></html>");
|
||||
f.close();
|
||||
$("<div>Testing</div>").appendTo(f.body);
|
||||
$("<div>Testing</div>").appendTo(document.getElementById("iframe").contentDocument.body);
|
||||
} catch(e){
|
||||
pass = false;
|
||||
}
|
||||
ok( pass, "$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968" );
|
||||
ok( pass, "$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968" );*/
|
||||
});
|
||||
|
||||
test("isFunction", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue