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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sass/test-mapping-with-cache-busting-url.html

Issue 1965223003: DevTools: liveSASS should tolerate race between iNotify and BrowserSync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sass/test-mapping-with-cache-busting-url-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3
4 <link rel="stylesheet" href="resources/test-mapping-good.css?rel=123412341234">
5
6 <script src="../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../http/tests/inspector/debugger-test.js"></script>
8 <script src="./sass-test.js"></script>
9 <script>
10
11 function simulateBrowserSync()
12 {
13 var link = document.querySelector("link");
14 // Simulate iNotify push of new CSS.
15 link.href = "resources/test-mapping-good.css";
16 // Simluate BrowserSync update styleSheet with a cache-busting URL.
17 setTimeout(() => link.href = "resources/test-mapping-good.css?rel=1234123412 34", 0);
18 }
19
20 function test()
21 {
22 Runtime.experiments.enableForTest("liveSASS");
23 InspectorTest.evaluateInPage("simulateBrowserSync()", function() { });
24 InspectorTest.cssModel.addEventListener(WebInspector.CSSModel.Events.SourceM apAttached, onSourceMapAttached);
25
26 function onSourceMapAttached(event)
27 {
28 var header = event.data;
29 var sourceMap = InspectorTest.cssModel.sourceMapForHeader(header);
30 InspectorTest.addResult("SourceMap is editable: " + sourceMap.editable() );
31 InspectorTest.completeTest();
32 }
33 }
34
35 </script>
36
37 </head>
38
39 <body onload="runTest()">
40 <p>Verifies that editable source map is created in case of race between iNotify and BrowserSync.</p>
41 </body>
42 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sass/test-mapping-with-cache-busting-url-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698