OLD | NEW |
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> | 9 <script> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 if (currentUISourceCode.url().indexOf("styles-history.css")
=== -1) | 24 if (currentUISourceCode.url().indexOf("styles-history.css")
=== -1) |
25 return; | 25 return; |
26 uiSourceCode = currentUISourceCode; | 26 uiSourceCode = currentUISourceCode; |
27 next(); | 27 next(); |
28 } | 28 } |
29 Workspace.workspace.uiSourceCodes().forEach(visitUISourceCodes); | 29 Workspace.workspace.uiSourceCodes().forEach(visitUISourceCodes); |
30 }, | 30 }, |
31 | 31 |
32 function testSetResourceContentMinor(next) | 32 function testSetResourceContentMinor(next) |
33 { | 33 { |
34 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleCo
ntentSet", styleUpdatedMinor); | 34 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleFi
leSyncedForTest", styleUpdatedMinor); |
35 uiSourceCode.setWorkingCopy("body {\n margin: 15px;\n padding:
10px;\n}"); | 35 uiSourceCode.setWorkingCopy("body {\n margin: 15px;\n padding:
10px;\n}"); |
36 | 36 |
37 function styleUpdatedMinor() | 37 function styleUpdatedMinor() |
38 { | 38 { |
39 dumpHistory(next)(); | 39 dumpHistory(next)(); |
40 } | 40 } |
41 }, | 41 }, |
42 | 42 |
43 function testSetResourceContentMajor(next) | 43 function testSetResourceContentMajor(next) |
44 { | 44 { |
45 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleCo
ntentSet", styleUpdatedMinor); | 45 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_styleFi
leSyncedForTest", styleUpdatedMinor); |
46 uiSourceCode.setWorkingCopy("body {\n margin: 20px;\n padding:
10px;\n}"); | 46 uiSourceCode.setWorkingCopy("body {\n margin: 20px;\n padding:
10px;\n}"); |
47 | 47 |
48 function styleUpdatedMinor() | 48 function styleUpdatedMinor() |
49 { | 49 { |
50 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_sty
leContentSet", styleUpdatedMajor); | 50 InspectorTest.addSniffer(Bindings.StyleFile.prototype, "_sty
leFileSyncedForTest", styleUpdatedMajor); |
51 uiSourceCode.commitWorkingCopy(function() { }); | 51 uiSourceCode.commitWorkingCopy(function() { }); |
52 | 52 |
53 function styleUpdatedMajor() | 53 function styleUpdatedMajor() |
54 { | 54 { |
55 dumpHistory(next)(); | 55 dumpHistory(next)(); |
56 } | 56 } |
57 } | 57 } |
58 }, | 58 }, |
59 | 59 |
60 function testSetContentViaModelMinor(next) | 60 function testSetContentViaModelMinor(next) |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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> |
OLD | NEW |