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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html

Issue 2450663004: DevTools: do not allow using 'this' before call into super. (Closed)
Patch Set: rebaselined Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint.html » ('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 <base href="/inspector-debug/"></base> 3 <base href="/inspector-debug/"></base>
4 <script src="/inspector-debug/Runtime.js"></script> 4 <script src="/inspector-debug/Runtime.js"></script>
5 <script src="/inspector-unit/inspector-unit-test.js"></script> 5 <script src="/inspector-unit/inspector-unit-test.js"></script>
6 <script> 6 <script>
7 function test() { 7 function test() {
8 var suggestions = ["heyoo", "hey it's a suggestion", "hey another suggestion "]; 8 var suggestions = ["heyoo", "hey it's a suggestion", "hey another suggestion "];
9 var prompt = new WebInspector.TextPrompt((element, range, force, callback) = > callback(suggestions)); 9 var prompt = new WebInspector.TextPrompt();
10 prompt.initialize((element, range, force, callback) => callback(suggestions) );
10 prompt.setSuggestBoxEnabled(true); 11 prompt.setSuggestBoxEnabled(true);
11 var div = document.createElement("div"); 12 var div = document.createElement("div");
12 WebInspector.inspectorView.element.appendChild(div); 13 WebInspector.inspectorView.element.appendChild(div);
13 prompt.attachAndStartEditing(div); 14 prompt.attachAndStartEditing(div);
14 prompt.setText("hey"); 15 prompt.setText("hey");
15 prompt.complete(); 16 prompt.complete();
16 UnitTest.addResult("UserEnteredText:" + prompt.userEnteredText()); 17 UnitTest.addResult("UserEnteredText:" + prompt.userEnteredText());
17 UnitTest.addResult("Text:" + prompt.text()); 18 UnitTest.addResult("Text:" + prompt.text());
18 UnitTest.completeTest(); 19 UnitTest.completeTest();
19 } 20 }
20 </script> 21 </script>
21 </head> 22 </head>
22 <body> 23 <body>
23 This tests if the TextPrompt autocomplete works properly. 24 This tests if the TextPrompt autocomplete works properly.
24 </body> 25 </body>
25 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698