Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Adds unit/support.js to unit tests. Still have to test for #8763 has …
…to be done in its own file however, since Firefox refuses to notify global errors in the iframe (attachEvent, window.onerror and script.onerror all fail).
- Loading branch information
Showing
5 changed files
with
85 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<body> | ||
<script src="../../../src/core.js"></script> | ||
<script src="../../../src/deferred.js"></script> | ||
<script src="../../../src/support.js"></script> | ||
<script src="../../../src/data.js"></script> | ||
<script src="../../../src/queue.js"></script> | ||
<script src="../../../src/attributes.js"></script> | ||
<script src="../../../src/event.js"></script> | ||
<script src="../../../src/sizzle/sizzle.js"></script> | ||
<script src="../../../src/sizzle-jquery.js"></script> | ||
<script src="../../../src/traversing.js"></script> | ||
<script src="../../../src/manipulation.js"></script> | ||
<script src="../../../src/css.js"></script> | ||
<script src="../../../src/ajax.js"></script> | ||
<script src="../../../src/ajax/jsonp.js"></script> | ||
<script src="../../../src/ajax/script.js"></script> | ||
<script src="../../../src/ajax/xhr.js"></script> | ||
<script src="../../../src/effects.js"></script> | ||
<script src="../../../src/offset.js"></script> | ||
<script src="../../../src/dimensions.js"></script> | ||
<script> | ||
window.top.supportCallback( document.compatMode, jQuery.support.boxModel ); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<html> | ||
<head> | ||
<script src="../../../src/core.js"></script> | ||
<script src="../../../src/deferred.js"></script> | ||
<script src="../../../src/support.js"></script> | ||
<script src="../../../src/data.js"></script> | ||
<script src="../../../src/queue.js"></script> | ||
<script src="../../../src/attributes.js"></script> | ||
<script src="../../../src/event.js"></script> | ||
<script src="../../../src/sizzle/sizzle.js"></script> | ||
<script src="../../../src/sizzle-jquery.js"></script> | ||
<script src="../../../src/traversing.js"></script> | ||
<script src="../../../src/manipulation.js"></script> | ||
<script src="../../../src/css.js"></script> | ||
<script src="../../../src/ajax.js"></script> | ||
<script src="../../../src/ajax/jsonp.js"></script> | ||
<script src="../../../src/ajax/script.js"></script> | ||
<script src="../../../src/ajax/xhr.js"></script> | ||
<script src="../../../src/effects.js"></script> | ||
<script src="../../../src/offset.js"></script> | ||
<script src="../../../src/dimensions.js"></script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module("support", { teardown: moduleTeardown }); | ||
|
||
function supportIFrameTest( title, url, noDisplay, func ) { | ||
|
||
if ( noDisplay !== true ) { | ||
func = noDisplay; | ||
noDisplay = false; | ||
} | ||
|
||
test( title, function() { | ||
var iframe; | ||
|
||
stop(); | ||
window.supportCallback = function() { | ||
var self = this, | ||
args = arguments; | ||
setTimeout( function() { | ||
window.supportCallback = undefined; | ||
iframe.remove(); | ||
func.apply( self, args ); | ||
start(); | ||
}, 0 ); | ||
}; | ||
iframe = jQuery( "<div/>" ).css( "display", noDisplay ? "none" : "block" ).append( | ||
jQuery( "<iframe/>" ).attr( "src", "data/support/" + url + ".html" ) | ||
).appendTo( "body" ); | ||
}); | ||
} | ||
|
||
supportIFrameTest( "proper boxModel in compatMode CSS1Compat (IE6 and IE7)", "boxModelIE", function( compatMode, boxModel ) { | ||
ok( compatMode !== "CSS1Compat" || boxModel, "boxModel properly detected" ); | ||
}); |