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

Side by Side Diff: LayoutTests/inspector/styles/styles-commit-editing.html

Issue 7708012: Merge 92764 - Web Inspector: [REGRESSION] Editor lost after committing a CSS property value for i... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 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
« no previous file with comments | « LayoutTests/ChangeLog ('k') | Source/WebCore/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.showPanel("elements"); 9 WebInspector.showPanel("elements");
10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); 10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
(...skipping 16 matching lines...) Expand all
27 27
28 // Commit editing. 28 // Commit editing.
29 treeElement.valueElement.textContent = "green"; 29 treeElement.valueElement.textContent = "green";
30 treeElement.valueElement.firstChild.select(); 30 treeElement.valueElement.firstChild.select();
31 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er")); 31 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er"));
32 InspectorTest.runAfterPendingDispatches(step2); 32 InspectorTest.runAfterPendingDispatches(step2);
33 } 33 }
34 34
35 function step2() 35 function step2()
36 { 36 {
37 if (!WebInspector.isEditingAnyField()) {
38 InspectorTest.addResult("No new property editor active!");
39 InspectorTest.completeTest();
40 }
37 InspectorTest.selectNodeWithId("other"); 41 InspectorTest.selectNodeWithId("other");
38 InspectorTest.runAfterPendingDispatches(step3); 42 InspectorTest.runAfterPendingDispatches(step3);
39 } 43 }
40 44
41 function step3() 45 function step3()
42 { 46 {
43 InspectorTest.selectNodeAndWaitForStyles("inspected", step4); 47 InspectorTest.selectNodeAndWaitForStyles("inspected", step4);
44 } 48 }
45 49
46 function step4() 50 function step4()
(...skipping 10 matching lines...) Expand all
57 <body onload="runTest()"> 61 <body onload="runTest()">
58 <p> 62 <p>
59 Tests that editing is canceled properly after incremental editing. 63 Tests that editing is canceled properly after incremental editing.
60 </p> 64 </p>
61 65
62 <div id="inspected" style="color: red">Text</div> 66 <div id="inspected" style="color: red">Text</div>
63 <div id="other"></div> 67 <div id="other"></div>
64 68
65 </body> 69 </body>
66 </html> 70 </html>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | Source/WebCore/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698