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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-history.html

Issue 2662513003: DevTools: make StylesSourceMapping in charge of creating and removing UISourceCodes (Closed)
Patch Set: move projects under stylessourcemapping Created 3 years, 10 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 3
4 <link rel="stylesheet" href="../styles/resources/styles-history.css"> 4 <link rel="stylesheet" href="../styles/resources/styles-history.css">
5 5
6 <script src="../../../http/tests/inspector/inspector-test.js"></script> 6 <script src="../../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../../http/tests/inspector/elements-test.js"></script> 7 <script src="../../../http/tests/inspector/elements-test.js"></script>
8 <script src="../../../http/tests/inspector/resources-test.js"></script> 8 <script src="../../../http/tests/inspector/resources-test.js"></script>
9 <script src="../styles/styles-test.js"></script> 9 <script src="../styles/styles-test.js"></script>
10 <script> 10 <script>
(...skipping 14 matching lines...) Expand all
25 if (currentUISourceCode.url().indexOf("styles-history.css") === -1) 25 if (currentUISourceCode.url().indexOf("styles-history.css") === -1)
26 return; 26 return;
27 uiSourceCode = currentUISourceCode; 27 uiSourceCode = currentUISourceCode;
28 next(); 28 next();
29 } 29 }
30 Workspace.workspace.uiSourceCodes().forEach(visitUISourceCodes); 30 Workspace.workspace.uiSourceCodes().forEach(visitUISourceCodes);
31 }, 31 },
32 32
33 function testSetResourceContentMinor(next) 33 function testSetResourceContentMinor(next)
34 { 34 {
35 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleCo ntentSet", styleUpdatedMinor); 35 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleFi leSyncedForTest", styleUpdatedMinor);
36 uiSourceCode.setWorkingCopy("body {\n margin: 15px;\n padding: 10px;\n}"); 36 uiSourceCode.setWorkingCopy("body {\n margin: 15px;\n padding: 10px;\n}");
37 37
38 function styleUpdatedMinor() 38 function styleUpdatedMinor()
39 { 39 {
40 dumpHistory(next)(); 40 dumpHistory(next)();
41 } 41 }
42 }, 42 },
43 43
44 function testSetResourceContentMajor(next) 44 function testSetResourceContentMajor(next)
45 { 45 {
46 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleCo ntentSet", styleUpdatedMinor); 46 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleFi leSyncedForTest", styleUpdatedMinor);
47 uiSourceCode.setWorkingCopy("body {\n margin: 20px;\n padding: 10px;\n}"); 47 uiSourceCode.setWorkingCopy("body {\n margin: 20px;\n padding: 10px;\n}");
48 48
49 function styleUpdatedMinor() 49 function styleUpdatedMinor()
50 { 50 {
51 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_sty leContentSet", styleUpdatedMajor); 51 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_sty leFileSyncedForTest", styleUpdatedMajor);
52 uiSourceCode.commitWorkingCopy(function() { }); 52 uiSourceCode.commitWorkingCopy(function() { });
53 53
54 function styleUpdatedMajor() 54 function styleUpdatedMajor()
55 { 55 {
56 dumpHistory(next)(); 56 dumpHistory(next)();
57 } 57 }
58 } 58 }
59 }, 59 },
60 60
61 function testSetContentViaModelMinor(next) 61 function testSetContentViaModelMinor(next)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 </script> 140 </script>
141 </head> 141 </head>
142 142
143 <body id="mainBody" onload="runTest()"> 143 <body id="mainBody" onload="runTest()">
144 <p> 144 <p>
145 Tests resources panel history. 145 Tests resources panel history.
146 </p> 146 </p>
147 </body> 147 </body>
148 </html> 148 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698