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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-1/case-sensitive-suggestions.html

Issue 2181123002: DevTools: Remove unused parameters to TextPrompt._loadCompletions callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove toLowerCase() Created 4 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
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 prompt = new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebInspect or.CSSMetadata.cssPropertiesMetainfo, null, true); 9 var prompt = new WebInspector.StylesSidebarPane.CSSPropertyPrompt(WebInspect or.CSSMetadata.cssPropertiesMetainfo, null, true);
10 10
(...skipping 13 matching lines...) Expand all
24 testAutoCompletionsAgainstCase(prompt, "bAcK", next); 24 testAutoCompletionsAgainstCase(prompt, "bAcK", next);
25 } 25 }
26 ]); 26 ]);
27 27
28 function testAutoCompletionsAgainstCase(prompt, inputText, callback) 28 function testAutoCompletionsAgainstCase(prompt, inputText, callback)
29 { 29 {
30 var proxyElement = document.body.createChild("span"); 30 var proxyElement = document.body.createChild("span");
31 proxyElement.textContent = inputText; 31 proxyElement.textContent = inputText;
32 var selectionRange = document.createRange(); 32 var selectionRange = document.createRange();
33 selectionRange.selectNodeContents(proxyElement); 33 selectionRange.selectNodeContents(proxyElement);
34 prompt._buildPropertyCompletions(proxyElement, inputText, inputText.leng th, selectionRange, true, completions); 34 prompt._buildPropertyCompletions(proxyElement, selectionRange, true, com pletions);
35 35
36 function completions(result, index) 36 function completions(result, index)
37 { 37 {
38 function isUpperCase(str) 38 function isUpperCase(str)
39 { 39 {
40 return str === str.toUpperCase(); 40 return str === str.toUpperCase();
41 } 41 }
42 42
43 function isLowerCase(str) 43 function isLowerCase(str)
44 { 44 {
(...skipping 27 matching lines...) Expand all
72 } 72 }
73 </script> 73 </script>
74 </head> 74 </head>
75 75
76 <body onload="runTest()"> 76 <body onload="runTest()">
77 <p> 77 <p>
78 Tests that text prompt suggestions' casing follows that of the user input. 78 Tests that text prompt suggestions' casing follows that of the user input.
79 </p> 79 </p>
80 </body> 80 </body>
81 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698