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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles/updates-during-dom-traversal.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 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 var updateCount = 0; 9 var updateCount = 0;
10 var keydownCount = 5; 10 var keydownCount = 5;
11 11
12 InspectorTest.selectNodeAndWaitForStyles("inspected", selectCallback); 12 InspectorTest.selectNodeAndWaitForStyles("inspected", selectCallback);
13 function selectCallback() 13 function selectCallback()
14 { 14 {
15 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_inn erRebuildUpdate", sniffUpdate, true); 15 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_inn erRebuildUpdate", sniffUpdate, true);
16 var element = InspectorTest.firstElementsTreeOutline().element; 16 var element = InspectorTest.firstElementsTreeOutline().element;
17 for (var i = 0; i < keydownCount; ++i) 17 for (var i = 0; i < keydownCount; ++i)
18 element.dispatchEvent(InspectorTest.createKeyEvent("Up")); 18 element.dispatchEvent(InspectorTest.createKeyEvent("ArrowUp"));
19 19
20 InspectorTest.deprecatedRunAfterPendingDispatches(completeCallback); 20 InspectorTest.deprecatedRunAfterPendingDispatches(completeCallback);
21 } 21 }
22 22
23 function completeCallback() 23 function completeCallback()
24 { 24 {
25 if (updateCount >= keydownCount) 25 if (updateCount >= keydownCount)
26 InspectorTest.addResult("ERROR: got " + updateCount + " updates for " + keydownCount + " consecutive keydowns"); 26 InspectorTest.addResult("ERROR: got " + updateCount + " updates for " + keydownCount + " consecutive keydowns");
27 else 27 else
28 InspectorTest.addResult("OK: updates throttled"); 28 InspectorTest.addResult("OK: updates throttled");
(...skipping 16 matching lines...) Expand all
45 45
46 <div></div> 46 <div></div>
47 <div></div> 47 <div></div>
48 <div></div> 48 <div></div>
49 <div></div> 49 <div></div>
50 <div></div> 50 <div></div>
51 <div id="inspected"></div> 51 <div id="inspected"></div>
52 52
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698