Update prefers-color-scheme media query matching based on GitHub issue #3278.
[WebKit-https.git] / LayoutTests / js / dopey-rope-with-16-bit-propertyname.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <script>
9
10 description("Test that a 16-bit AtomicString containing only 8-bit characters doesn't confuse the JIT into thinking it's an 8-bit AtomicString.");
11
12 o = {};
13
14 stringWithEmoji = "zest😐";
15 var test16bit = stringWithEmoji.substring(0, 4);
16
17 o[test16bit] = "this makes it an AtomicString";
18
19 globalRope = "";
20
21 function jittable(a, b) {
22     for (var i = 0; i < 5000; ++i) {
23         poisonedRope = a + b;
24         o[poisonedRope] = 1;
25         globalRope = "foo." + poisonedRope;
26     }
27 }
28
29 jittable("ze", "st");
30
31 shouldBe("globalRope", "'foo.zest'");
32
33 </script>
34 <script src="../resources/js-test-post.js"></script>
35 </body>
36 </html>