diff --git a/test/boxModelIE.html b/test/boxModelIE.html
deleted file mode 100644
index f8e6a431..00000000
--- a/test/boxModelIE.html
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
- jQuery Test boxModel detection in IE 6 & 7 compatMode="CSS1Compat"
- document.compatMode = ?
- jQuery.support.boxModel = ?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/data/support/boxModelIE.html b/test/data/support/boxModelIE.html
new file mode 100644
index 00000000..1b11d2a5
--- /dev/null
+++ b/test/data/support/boxModelIE.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/data/support/hiddenIFrameFF.html b/test/data/support/hiddenIFrameFF.html
new file mode 100644
index 00000000..000ac851
--- /dev/null
+++ b/test/data/support/hiddenIFrameFF.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/index.html b/test/index.html
index 3d421a56..4b4c9855 100644
--- a/test/index.html
+++ b/test/index.html
@@ -34,6 +34,7 @@
+
diff --git a/test/unit/support.js b/test/unit/support.js
new file mode 100644
index 00000000..9d99529a
--- /dev/null
+++ b/test/unit/support.js
@@ -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( "" ).css( "display", noDisplay ? "none" : "block" ).append(
+ jQuery( "" ).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" );
+});