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

Side by Side Diff: LayoutTests/inspector/elements/styles/disable-property-workingcopy-update.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="resources/disable-property-workingcopy-update.css"> 3 <link rel="stylesheet" href="resources/disable-property-workingcopy-update.css">
4 <script src="../../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script src="../../../http/tests/inspector/elements-test.js"></script> 6 <script src="../../../http/tests/inspector/elements-test.js"></script>
7 <script> 7 <script>
8 8
9 function test() 9 function test()
10 { 10 {
11 var cssSourceFrame; 11 var cssSourceFrame;
12 WebInspector.StylesSourceMapping.MinorChangeUpdateTimeoutMs = 10; 12 WebInspector.StylesSourceMapping.MinorChangeUpdateTimeoutMs = 10;
13 13
14 InspectorTest.runTestSuite([ 14 InspectorTest.runTestSuite([
15 function selectContainer(next) 15 function selectContainer(next)
16 { 16 {
17 InspectorTest.selectNodeAndWaitForStyles("inspected", next); 17 InspectorTest.selectNodeAndWaitForStyles("inspected", next);
18 }, 18 },
19 19
20 function showEditor(next) 20 function showEditor(next)
21 { 21 {
22 var headers = WebInspector.cssModel.styleSheetHeaders(); 22 var headers = InspectorTest.cssModel.styleSheetHeaders();
23 for (var i = 0; i < headers.length; ++i) { 23 for (var i = 0; i < headers.length; ++i) {
24 if (headers[i].sourceURL.endsWith(".css")) { 24 if (headers[i].sourceURL.endsWith(".css")) {
25 var cssLocation = new WebInspector.CSSLocation(WebInspector. cssModel.target(), headers[i].id, headers[i].sourceURL, 0); 25 var cssLocation = new WebInspector.CSSLocation(InspectorTest .cssModel.target(), headers[i].id, headers[i].sourceURL, 0);
26 InspectorTest.showUISourceCode(WebInspector.cssWorkspaceBind ing.rawLocationToUILocation(cssLocation).uiSourceCode, callback); 26 InspectorTest.showUISourceCode(WebInspector.cssWorkspaceBind ing.rawLocationToUILocation(cssLocation).uiSourceCode, callback);
27 break; 27 break;
28 } 28 }
29 } 29 }
30 30
31 function callback(sourceFrame) 31 function callback(sourceFrame)
32 { 32 {
33 cssSourceFrame = sourceFrame; 33 cssSourceFrame = sourceFrame;
34 InspectorTest.dumpSourceFrameContents(cssSourceFrame); 34 InspectorTest.dumpSourceFrameContents(cssSourceFrame);
35 next(); 35 next();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 <body onload="runTest()"> 81 <body onload="runTest()">
82 <p> 82 <p>
83 Tests that style property disablement is propagated into the stylesheet UISource Code working copy. 83 Tests that style property disablement is propagated into the stylesheet UISource Code working copy.
84 </p> 84 </p>
85 85
86 <div id="inspected"> 86 <div id="inspected">
87 </div> 87 </div>
88 88
89 </body> 89 </body>
90 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698