Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-checkContent.html

Issue 2567283004: DevTools: drastically simplify UISourceCode.checkContentUpdated (Closed)
Patch Set: kill stale test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-checkContent.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-checkContent.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-checkContent.html
deleted file mode 100644
index 3025548b79d21914345aca0cebe714d8493805bd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-checkContent.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-function startWorker()
-{
- var workerScript = "postMessage('Done.');";
- var blob = new Blob([workerScript], { type: "text/javascript" });
- var worker = new Worker(URL.createObjectURL(blob));
-}
-
-function test()
-{
- var uiSourceCode;
-
- window.confirm = confirmOverride;
-
- Snippets.scriptSnippetModel.project().createFile("", null, "", onCreated.bind(this));
- function onCreated(usc)
- {
- uiSourceCode = usc;
- uiSourceCode.requestContent().then(onContentAvailable);
- }
-
- function onContentAvailable()
- {
- uiSourceCode.setWorkingCopy("var a = 0;");
- uiSourceCode.checkContentUpdated(true, onUpdated);
- }
-
- function confirmOverride()
- {
- InspectorTest.addResult("FAILED: confirmation dialog appeared");
- }
-
- function onUpdated()
- {
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Tests that checking content on the dirty snippet does not wipe it out.</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698