]> source.dussan.org Git - jquery.git/commitdiff
Add test page for crashing IE8 when the testElement in support has a background ...
authortimmywil <timmywillisn@gmail.com>
Thu, 4 Aug 2011 22:56:49 +0000 (18:56 -0400)
committertimmywil <timmywillisn@gmail.com>
Thu, 4 Aug 2011 22:56:49 +0000 (18:56 -0400)
test/data/support/testElementCrash.html [new file with mode: 0644]
test/unit/support.js

diff --git a/test/data/support/testElementCrash.html b/test/data/support/testElementCrash.html
new file mode 100644 (file)
index 0000000..db2c455
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+       <style>
+               body {
+                       background: url('http://s1.postimage.org/2d2r8xih0/body_background.png');
+               }
+       </style>
+       <script src="../../../src/core.js"></script>
+       <script src="../../../src/deferred.js"></script>
+       <script src="../../../src/support.js"></script>
+</head>
+<body>
+       <script>
+               window.parent.supportCallback();
+       </script>
+</body>
+</html>
index b87e0919f86bba4777ef3e3bdc5e326fcf05615f..4733b2529ede4c40cbf8dd37ed89ba4d1a0a1824 100644 (file)
@@ -53,3 +53,8 @@ supportIFrameTest( "body background is not lost if set prior to loading jQuery (
        }
        ok( passed, "Same support properties" );
 });
+
+supportIFrameTest( "A background on the testElement does not cause IE8 to crash (#9823)", "testElementCrash", function() {
+       expect(1);
+       ok( true, "IE8 does not crash" );
+});