Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/css/media-query-listener-exception.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698