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

Side by Side Diff: LayoutTests/inspector/elements/styles/styles-disable-property-after-selector-edit.html

Issue 1002293002: DevTools: [SSP] refactor internal representations of sections (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 9 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 selectInitialNode(next) 10 function selectInitialNode(next)
11 { 11 {
12 InspectorTest.selectNodeAndWaitForStyles("inspected", next); 12 InspectorTest.selectNodeAndWaitForStyles("inspected", next);
13 }, 13 },
14 14
15 function editSelector(next) 15 function editSelector(next)
16 { 16 {
17 var section = WebInspector.panels.elements.sidebarPanes.styles.secti ons[0][1]; 17 var section = InspectorTest.firstMatchedStyleSection();
18 section.startEditingSelector(); 18 section.startEditingSelector();
19 section._selectorElement.textContent = "#inspected, .INSERTED-OTHER- SELECTOR"; 19 section._selectorElement.textContent = "#inspected, .INSERTED-OTHER- SELECTOR";
20 InspectorTest.waitForSelectorCommitted(next); 20 InspectorTest.waitForSelectorCommitted(next);
21 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent( "Enter")); 21 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent( "Enter"));
22 }, 22 },
23 23
24 function testDisableProperty(next) 24 function testDisableProperty(next)
25 { 25 {
26 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("color" ); 26 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("color" );
27 InspectorTest.waitForStyleApplied(onPropertyDisabled); 27 InspectorTest.waitForStyleApplied(onPropertyDisabled);
(...skipping 18 matching lines...) Expand all
46 46
47 <body onload="runTest()"> 47 <body onload="runTest()">
48 <p> 48 <p>
49 Verifies that sequence of setting selector and disabling property works. 49 Verifies that sequence of setting selector and disabling property works.
50 </p> 50 </p>
51 51
52 <div id="inspected">Red text here.</div> 52 <div id="inspected">Red text here.</div>
53 53
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698