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: third_party/WebKit/LayoutTests/inspector/elements/styles/undo-after-cancelled-editing.html

Issue 2045603002: Handle the "key" field as opposed to keyIdentifier field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove initialization of the view Created 4 years, 6 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 <style> 5 <style>
6 #inspected { 6 #inspected {
7 } 7 }
8 </style> 8 </style>
9 <script> 9 <script>
10 10
(...skipping 27 matching lines...) Expand all
38 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent(" Enter")); 38 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent(" Enter"));
39 39
40 // Update incrementally, do not commit. 40 // Update incrementally, do not commit.
41 treeElement.valueElement.textContent = "red"; 41 treeElement.valueElement.textContent = "red";
42 treeElement.kickFreeFlowStyleEditForTest(); 42 treeElement.kickFreeFlowStyleEditForTest();
43 InspectorTest.waitForStyleApplied(next); 43 InspectorTest.waitForStyleApplied(next);
44 }, 44 },
45 45
46 function cancelEditing(next) 46 function cancelEditing(next)
47 { 47 {
48 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent( "U+001B")); // Escape 48 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent( "Escape"));
49 InspectorTest.waitForStyleApplied(next); 49 InspectorTest.waitForStyleApplied(next);
50 }, 50 },
51 51
52 function undoStyles(next) 52 function undoStyles(next)
53 { 53 {
54 InspectorTest.dumpSelectedElementStyles(true, false, true); 54 InspectorTest.dumpSelectedElementStyles(true, false, true);
55 InspectorTest.domModel.undo(); 55 InspectorTest.domModel.undo();
56 InspectorTest.waitForStyles("inspected", next, true); 56 InspectorTest.waitForStyles("inspected", next, true);
57 }, 57 },
58 58
(...skipping 11 matching lines...) Expand all
70 <body onload="runTest()"> 70 <body onload="runTest()">
71 <p> 71 <p>
72 Verifies that cancelling property value editing doesn't affect 72 Verifies that cancelling property value editing doesn't affect
73 undo stack. 73 undo stack.
74 </p> 74 </p>
75 75
76 <div id="inspected">Text</div> 76 <div id="inspected">Text</div>
77 77
78 </body> 78 </body>
79 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698