Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / compile-javascript.html
blobb0caaf4896550feb0273cd5d7c34e3564041b5cc
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../editor/editor-test.js"></script>
6 <script src="./debugger/resources/edit-me.js"></script>
7 <script>
9 function test()
11 InspectorTest.showScriptSource("edit-me.js", onSourceFrame);
13 function onSourceFrame(sourceFrame)
15 InspectorTest.addSniffer(WebInspector.JavaScriptCompiler.prototype, "_compilationFinishedForTest", onCompilationFinished.bind(null, sourceFrame));
16 sourceFrame.textEditor.setSelection(WebInspector.TextRange.createFromLocation(0, 0));
17 InspectorTest.typeIn(sourceFrame.textEditor, "test!");
20 function onCompilationFinished(sourceFrame)
22 for (var line in sourceFrame._rowMessageBuckets) {
23 var bubble = sourceFrame._rowMessageBuckets[line];
24 for (var rowMessage of bubble._messages) {
25 var message = rowMessage.message();
26 InspectorTest.addResult(String.sprintf("%d:%d [%s] %s", message.lineNumber(), message.columnNumber(), message.level(), message.messageText()));
29 InspectorTest.completeTest();
33 </script>
35 </head>
37 <body onload="runTest()">
38 <p>Verifies proactive javascript compilation.</p>
39 </body>
40 </html>