OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-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 theMediaQueryList.addListener(function(aMediaQueryList) { | 12 theMediaQueryList.addListener(function(aMediaQueryList) { |
13 objectThatDoesNotExist.produceError(); | 13 objectThatDoesNotExist.produceError(); |
(...skipping 13 matching lines...) Expand all Loading... |
27 InspectorTest.sendCommand("Page.setEmulatedMedia", { | 27 InspectorTest.sendCommand("Page.setEmulatedMedia", { |
28 "media": "print" | 28 "media": "print" |
29 }, didSetEmulatedMedia); | 29 }, didSetEmulatedMedia); |
30 } | 30 } |
31 </script> | 31 </script> |
32 </head> | 32 </head> |
33 <body onload="runTest()"> | 33 <body onload="runTest()"> |
34 <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> | 34 <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> |
35 </body> | 35 </body> |
36 </html> | 36 </html> |
OLD | NEW |