| OLD | NEW |
| 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/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function templateString() | 6 function templateString() |
| 7 { | 7 { |
| 8 console.log("The template string should not run and you should not see this
log"); | 8 console.log("The template string should not run and you should not see this
log"); |
| 9 return { | 9 return { |
| 10 shouldNotFindThis:56 | 10 shouldNotFindThis:56 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 sequential([ | 40 sequential([ |
| 41 () => testCompletions("window.", "do", ["document"]), | 41 () => testCompletions("window.", "do", ["document"]), |
| 42 () => testCompletions("", "win", ["window"]), | 42 () => testCompletions("", "win", ["window"]), |
| 43 () => testCompletions("window[", '"doc', ['"document"]']), | 43 () => testCompletions("window[", '"doc', ['"document"]']), |
| 44 () => testCompletions('window["document"].', "bo", ["body"]), | 44 () => testCompletions('window["document"].', "bo", ["body"]), |
| 45 () => testCompletions('window["document"]["body"].', "textC", ["textCont
ent"]), | 45 () => testCompletions('window["document"]["body"].', "textC", ["textCont
ent"]), |
| 46 () => testCompletions('document.body.', "inner", ["innerText", "innerHTM
L"]), | 46 () => testCompletions('document.body.', "inner", ["innerText", "innerHTM
L"]), |
| 47 () => testCompletions('document["body"][window.', "do", ["document"]), | 47 () => testCompletions('document["body"][window.', "do", ["document"]), |
| 48 () => testCompletions('document["body"][window["document"].body.childNod
es[0].', "text", ["textContent"]), | 48 () => testCompletions('document["body"][window["document"].body.childNod
es[0].', "text", ["textContent"]), |
| 49 () => testCompletions("templateString`asdf`", "should", ["shouldNotFindT
his"]) | 49 () => testCompletions("templateString`asdf`", "should", ["shouldNotFindT
his"]), |
| 50 () => testCompletions("window.document.", "BODY", ["body"]), |
| 51 () => testCompletions("window.", "dOcUmE", ["document"]), |
| 52 () => testCompletions("window.", "node", ["NodeList", "AudioNode", "Gain
Node"]) |
| 50 ]).then(InspectorTest.completeTest); | 53 ]).then(InspectorTest.completeTest); |
| 51 | 54 |
| 52 } | 55 } |
| 53 </script> | 56 </script> |
| 54 </head> | 57 </head> |
| 55 <body onload="runTest()"> | 58 <body onload="runTest()"> |
| 56 <p>Tests that console correctly finds suggestions in complicated cases.</p> | 59 <p>Tests that console correctly finds suggestions in complicated cases.</p> |
| 57 </body> | 60 </body> |
| 58 </html> | 61 </html> |
| OLD | NEW |