OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 | 9 |
10 var theMediaQueryList = window.matchMedia("print"); | 10 var theMediaQueryList = window.matchMedia("print"); |
11 | 11 |
12 var callCount = 0; | 12 var callCount = 0; |
13 theMediaQueryList.addListener(function(aMediaQueryList) { | 13 theMediaQueryList.addListener(function(aMediaQueryList) { |
(...skipping 27 matching lines...) Expand all Loading... |
41 InspectorTest.sendCommand("Emulation.setEmulatedMedia", { | 41 InspectorTest.sendCommand("Emulation.setEmulatedMedia", { |
42 "media": "print" | 42 "media": "print" |
43 }, didSetEmulatedMedia); | 43 }, didSetEmulatedMedia); |
44 } | 44 } |
45 </script> | 45 </script> |
46 </head> | 46 </head> |
47 <body onload="runTest()"> | 47 <body onload="runTest()"> |
48 <p>Test that uncaught exception in MediaQueryListListener will be reported to th
e console. On success you should see two exceptions in the listener logged to th
e console (first time when the media type is overridden and second - when they a
re restored). <a href="https://bugs.webkit.org/show_bug.cgi?id=105162">Bug 10516
2.</p> | 48 <p>Test that uncaught exception in MediaQueryListListener will be reported to th
e console. On success you should see two exceptions in the listener logged to th
e console (first time when the media type is overridden and second - when they a
re restored). <a href="https://bugs.webkit.org/show_bug.cgi?id=105162">Bug 10516
2.</p> |
49 </body> | 49 </body> |
50 </html> | 50 </html> |
OLD | NEW |