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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-rerequest-sourcemap-on-watchdog.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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/inspector-test .js"></script> 3 <script type="text/javascript" src="../../../http/tests/inspector/inspector-test .js"></script>
4 <script type="text/javascript" src="../../../http/tests/inspector/debugger-test. js"></script> 4 <script type="text/javascript" src="../../../http/tests/inspector/debugger-test. js"></script>
5 <link rel="stylesheet"> 5 <link rel="stylesheet">
6 <script> 6 <script>
7 7
8 function addStyleSheet() 8 function addStyleSheet()
9 { 9 {
10 var link = document.querySelector("link"); 10 var link = document.querySelector("link");
11 link.setAttribute("href", "./resources/styles-rerequest-sourcemap-on-watchdo g.css"); 11 link.setAttribute("href", "./resources/styles-rerequest-sourcemap-on-watchdo g.css");
12 } 12 }
13 13
14 function test() 14 function test()
15 { 15 {
16 InspectorTest.cssModel.addEventListener(WebInspector.CSSModel.Events.SourceM apAttached, onInitialSourceMap); 16 InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.SourceMapAttache d, onInitialSourceMap);
17 17
18 InspectorTest.evaluateInPagePromise("addStyleSheet()"); 18 InspectorTest.evaluateInPagePromise("addStyleSheet()");
19 19
20 function onInitialSourceMap() 20 function onInitialSourceMap()
21 { 21 {
22 InspectorTest.cssModel.removeEventListener(WebInspector.CSSModel.Events. SourceMapAttached, onInitialSourceMap); 22 InspectorTest.cssModel.removeEventListener(SDK.CSSModel.Events.SourceMap Attached, onInitialSourceMap);
23 InspectorTest.waitForScriptSource("styles-rerequest-sourcemap-on-watchdo g.css", onCSSFile); 23 InspectorTest.waitForScriptSource("styles-rerequest-sourcemap-on-watchdo g.css", onCSSFile);
24 } 24 }
25 25
26 function onCSSFile(uiSourceCode) 26 function onCSSFile(uiSourceCode)
27 { 27 {
28 InspectorTest.addSniffer(WebInspector.CSSModel.prototype, "_sourceMapLoa dedForTest", onSourceMapRerequested); 28 InspectorTest.addSniffer(SDK.CSSModel.prototype, "_sourceMapLoadedForTes t", onSourceMapRerequested);
29 uiSourceCode.addRevision("div { color: blue; } /*# sourceMappingURL=styl es-rerequest-sourcemap-on-watchdog.css.map */"); 29 uiSourceCode.addRevision("div { color: blue; } /*# sourceMappingURL=styl es-rerequest-sourcemap-on-watchdog.css.map */");
30 } 30 }
31 31
32 function onSourceMapRerequested() 32 function onSourceMapRerequested()
33 { 33 {
34 InspectorTest.addResult("SourceMap successfully re-requested."); 34 InspectorTest.addResult("SourceMap successfully re-requested.");
35 InspectorTest.completeTest(); 35 InspectorTest.completeTest();
36 } 36 }
37 } 37 }
38 </script> 38 </script>
39 </head> 39 </head>
40 <body onLoad="runTest();"> 40 <body onLoad="runTest();">
41 <p>Verifies that the sourceMap is in fact re-requested from network as SASS watc hdog updates the CSS file.</p> 41 <p>Verifies that the sourceMap is in fact re-requested from network as SASS watc hdog updates the CSS file.</p>
42 42
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698