| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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"]), | 50 () => testCompletions("window.document.", "BODY", ["body"]), |
| 51 () => testCompletions("window.", "dOcUmE", ["document"]), | 51 () => testCompletions("window.", "dOcUmE", ["document"]), |
| 52 () => testCompletions("window.", "node", ["NodeList", "AudioNode", "Gain
Node"]) | 52 () => testCompletions("window.", "node", ["NodeList", "AudioNode", "Gain
Node"]), |
| 53 () => testCompletions("", "32", ["Float32Array", "Int32Array"]), |
| 54 () => testCompletions("window.", "32", ["Float32Array", "Int32Array"]) |
| 53 ]).then(InspectorTest.completeTest); | 55 ]).then(InspectorTest.completeTest); |
| 54 | 56 |
| 55 } | 57 } |
| 56 </script> | 58 </script> |
| 57 </head> | 59 </head> |
| 58 <body onload="runTest()"> | 60 <body onload="runTest()"> |
| 59 <p>Tests that console correctly finds suggestions in complicated cases.</p> | 61 <p>Tests that console correctly finds suggestions in complicated cases.</p> |
| 60 </body> | 62 </body> |
| 61 </html> | 63 </html> |
| OLD | NEW |