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

Side by Side Diff: LayoutTests/inspector/elements/styles/styles-add-invalid-property.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 <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 WebInspector.inspectorView.showPanel("elements"); 9 WebInspector.inspectorView.showPanel("elements");
10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); 10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
11 11
12 var treeElement; 12 var treeElement;
13 var section; 13 var section;
14 14
15 function step1() 15 function step1()
16 { 16 {
17 InspectorTest.addResult("Before append:"); 17 InspectorTest.addResult("Before append:");
18 InspectorTest.dumpSelectedElementStyles(true); 18 InspectorTest.dumpSelectedElementStyles(true);
19 section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][1 ]; 19 section = WebInspector.inspectorView.panel("elements").sidebarPanes.styl es.sections[0][1];
20 section.expand(); 20 section.expand();
21 21
22 // Create and increment. 22 // Create and increment.
23 treeElement = section.addNewBlankProperty(); 23 treeElement = section.addNewBlankProperty();
24 treeElement.startEditing(); 24 treeElement.startEditing();
25 treeElement.nameElement.textContent = "color"; 25 treeElement.nameElement.textContent = "color";
26 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Ente r")); 26 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Ente r"));
27 27
28 // Update incrementally to a valid value. 28 // Update incrementally to a valid value.
29 treeElement.valueElement.textContent = "rgb("; 29 treeElement.valueElement.textContent = "rgb(";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 <body onload="runTest()"> 64 <body onload="runTest()">
65 <p> 65 <p>
66 Tests that adding an invalid property retains its syntax. 66 Tests that adding an invalid property retains its syntax.
67 </p> 67 </p>
68 68
69 <div id="inspected" style="font-size: 12px">Text</div> 69 <div id="inspected" style="font-size: 12px">Text</div>
70 <div id="other"></div> 70 <div id="other"></div>
71 71
72 </body> 72 </body>
73 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698