Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-bind-dirty-sourcecode.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-bind-dirty-sourcecode.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-bind-dirty-sourcecode.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aed0741a3b95e0ebfbdf5db75387214d51825dd3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-bind-dirty-sourcecode.html |
@@ -0,0 +1,46 @@ |
+<html> |
+<head> |
+<script src="../inspector-test.js"></script> |
+<script src="../debugger-test.js"></script> |
+<script src="../workspace-test.js"></script> |
+<script src="../console-test.js"></script> |
+<script src="../isolated-filesystem-test.js"></script> |
+<script src="./persistence-test.js"></script> |
+<script src="./resources/foo.js"></script> |
+<script> |
+ |
+function test() |
+{ |
+ var fs = new InspectorTest.TestFileSystem("file:///var/www"); |
+ InspectorTest.addFooJSFile(fs); |
+ fs.reportCreated(function() { }); |
+ |
+ InspectorTest.runTestSuite([ |
+ function waitForUISourceCodes(next) |
+ { |
+ Promise.all([ |
+ InspectorTest.waitForUISourceCode("foo.js", WebInspector.projectTypes.Network) |
+ .then(uiSourceCode => uiSourceCode.setWorkingCopy("dirty.")), |
+ InspectorTest.waitForUISourceCode("foo.js", WebInspector.projectTypes.FileSystem) |
+ ]).then(next); |
+ }, |
+ |
+ function addFileSystemMapping(next) |
+ { |
+ WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http://127.0.0.1:8000", "/"); |
+ next(); |
+ }, |
+ |
+ function dumpConsoleMessages(next) |
+ { |
+ InspectorTest.dumpConsoleMessages(); |
+ next(); |
+ }, |
+ ]); |
+}; |
+</script> |
+</head> |
+<body onload="runTest()"> |
+<p>Verify that dirty uiSourceCodes are not bound.</p> |
+</body> |
+</html> |