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

Side by Side Diff: LayoutTests/inspector/elements/styles-1/color-aware-property-value-edit.html

Issue 1285183006: DevTools: WI.Throttler goes promisified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cc
Patch Set: remove dependent patchset Created 5 years, 4 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 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 InspectorTest.runTestSuite([ 9 InspectorTest.runTestSuite([
10 function init(next) 10 function init(next)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEve nt("U+0009")); 74 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEve nt("U+0009"));
75 InspectorTest.addResult(treeElement.valueElement.textContent); 75 InspectorTest.addResult(treeElement.valueElement.textContent);
76 next(); 76 next();
77 } 77 }
78 } 78 }
79 ]); 79 ]);
80 80
81 function setFormat(newFormat, callback) 81 function setFormat(newFormat, callback)
82 { 82 {
83 WebInspector.settingForTest("colorFormat").set(newFormat); 83 WebInspector.settingForTest("colorFormat").set(newFormat);
84 WebInspector.panels.elements.sidebarPanes.styles.doUpdate(callback); 84 WebInspector.panels.elements.sidebarPanes.styles.doUpdate().then(callbac k);
85 } 85 }
86 86
87 function startEditingAndDumpValue(format, propertyName, next) 87 function startEditingAndDumpValue(format, propertyName, next)
88 { 88 {
89 setFormat(format, onFormatSet); 89 setFormat(format, onFormatSet);
90 90
91 function onFormatSet() 91 function onFormatSet()
92 { 92 {
93 var treeElement = InspectorTest.getElementStylePropertyTreeItem(prop ertyName); 93 var treeElement = InspectorTest.getElementStylePropertyTreeItem(prop ertyName);
94 treeElement.startEditing(treeElement.valueElement); 94 treeElement.startEditing(treeElement.valueElement);
(...skipping 10 matching lines...) Expand all
105 <body onload="runTest()"> 105 <body onload="runTest()">
106 <p> 106 <p>
107 Tests that property value being edited uses the user-specified color format. 107 Tests that property value being edited uses the user-specified color format.
108 </p> 108 </p>
109 109
110 <div id="inspected1" style="border: 1px solid red">inspected1</div> 110 <div id="inspected1" style="border: 1px solid red">inspected1</div>
111 <div id="inspected2" style="color: #ffffee">inspected2</div> 111 <div id="inspected2" style="color: #ffffee">inspected2</div>
112 112
113 </body> 113 </body>
114 </html> 114 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/elements-test.js ('k') | LayoutTests/inspector/elements/styles-2/lazy-computed-style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698