aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/data/support/testElementCrash.html19
-rw-r--r--test/unit/support.js5
2 files changed, 24 insertions, 0 deletions
diff --git a/test/data/support/testElementCrash.html b/test/data/support/testElementCrash.html
new file mode 100644
index 000000000..db2c45500
--- /dev/null
+++ b/test/data/support/testElementCrash.html
@@ -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>
diff --git a/test/unit/support.js b/test/unit/support.js
index b87e0919f..4733b2529 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -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" );
+});