Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-ui / script-snippet-checkContent.html
blob3254bcac338855ebbb72c508a766a277803deb88
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>
6 function startWorker()
8 var workerScript = "postMessage('Done.');";
9 var blob = new Blob([workerScript], { type: "text/javascript" });
10 var worker = new Worker(URL.createObjectURL(blob));
13 function test()
15 var uiSourceCode;
17 window.confirm = confirmOverride;
19 WebInspector.scriptSnippetModel.project().createFile("", null, "", onCreated.bind(this));
20 function onCreated(path)
22 uiSourceCode = WebInspector.scriptSnippetModel.project().uiSourceCode(path);
23 uiSourceCode.requestContent(onContentAvailable);
26 function onContentAvailable()
28 uiSourceCode.setWorkingCopy("var a = 0;");
29 uiSourceCode.checkContentUpdated(onUpdated);
32 function confirmOverride()
34 InspectorTest.addResult("FAILED: confirmation dialog appeared");
37 function onUpdated()
39 InspectorTest.completeTest();
42 </script>
43 </head>
44 <body onload="runTest()">
45 <p>Tests that checking content on the dirty snippet does not wipe it out.</p>
46 </body>
47 </html>