| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-live-edit.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-live-edit.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-live-edit.html
|
| deleted file mode 100644
|
| index 98f0e6857d4dead511af64717f2f36e2ac2d43f2..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-live-edit.html
|
| +++ /dev/null
|
| @@ -1,65 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/persistence/persistence-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script>
|
| -<script src="../../../http/tests/inspector/live-edit-test.js"></script>
|
| -<script>
|
| -function addScript()
|
| -{
|
| - var script = document.createElement("script");
|
| - script.src = "resources/edit-me.js";
|
| - document.head.appendChild(script);
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.runTestSuite([
|
| - function testLiveEditReload(next)
|
| - {
|
| - var fs = new InspectorTest.TestFileSystem("file:///var/www");
|
| - fs.root.mkdir("html").addFile("edit-me.js", "function f()\n{\n return 0;\n}\n");
|
| - fs.root.addFile("bar.js", "<bar content>");
|
| - InspectorTest.addResult("Adding file system.");
|
| - fs.addFileMapping(Common.ParsedURL.completeURL(InspectorTest.mainTarget.inspectedURL(), "resources/"), "/html/");
|
| - fs.reportCreated(fileSystemCreated);
|
| -
|
| - function fileSystemCreated()
|
| - {
|
| - InspectorTest.evaluateInPage("addScript()");
|
| - InspectorTest.waitForBinding("edit-me.js").then(didAddScript);
|
| - }
|
| -
|
| - function didAddScript()
|
| - {
|
| - InspectorTest.showScriptSource("edit-me.js", didShowScriptSource);
|
| - }
|
| -
|
| - function didShowScriptSource(sourceFrame)
|
| - {
|
| - InspectorTest.addResult("Editing filesystem resource: " + sourceFrame.uiSourceCode().url());
|
| - InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_didEditScriptSource", didEditScriptSource);
|
| - InspectorTest.replaceInSource(sourceFrame, "return 0;", "return \"live-edited string\";");
|
| - InspectorTest.commitSource(sourceFrame);
|
| - }
|
| -
|
| - function didEditScriptSource()
|
| - {
|
| - InspectorTest.evaluateInPage("f()", didEvaluateInPage);
|
| - }
|
| -
|
| - function didEvaluateInPage(result)
|
| - {
|
| - InspectorTest.addResult("Edited function returns: " + result.description);
|
| - next();
|
| - }
|
| - }
|
| - ]);
|
| -};
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| -<p>Tests file system project mappings in combination with live edit.</p>
|
| -</body>
|
| -</html>
|
|
|