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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content.html

Issue 2537233003: DevTools: [Persistence] sync working copies of UISourceCodes (Closed)
Patch Set: address comments 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content.html
index b5c0c4083beadec2b13a2ba6862ccb5c40e16d43..fd57e59e0483c1ef16c2821e575395dde2092378 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content.html
@@ -34,32 +34,36 @@ function test()
}
},
- function changeFileSystem(next)
+ function addFileSystemRevision(next)
{
- InspectorTest.addSniffer(Persistence.Persistence.prototype, "_contentSyncedForTest", onSynced);
+ InspectorTest.addSniffer(Persistence.Persistence.prototype, "_contentSyncedForTest", dumpWorkingCopiesAndNext.bind(null, next));
fsEntry.setContent("window.foo3 = 3;");
+ },
- function onSynced()
- {
- InspectorTest.addResult(`network code: '${networkCode.workingCopy()}'`);
- InspectorTest.addResult(`fileSystem code: '${fileSystemCode.workingCopy()}'`);
- next();
- }
+ function addFileSystemWorkingCopy(next)
+ {
+ InspectorTest.addSniffer(Persistence.Persistence.prototype, "_contentSyncedForTest", dumpWorkingCopiesAndNext.bind(null, next));
+ fileSystemCode.setWorkingCopy("window.foo4 = 4;");
},
- function changeNetworkUISourceCode(next)
+ function setNetworkRevision(next)
{
- InspectorTest.addSniffer(Persistence.Persistence.prototype, "_contentSyncedForTest", onSynced);
+ InspectorTest.addSniffer(Persistence.Persistence.prototype, "_contentSyncedForTest", dumpWorkingCopiesAndNext.bind(null, next));
networkCode.addRevision("window.foo2 = 2;");
+ },
- function onSynced()
- {
- InspectorTest.addResult(`network code: '${networkCode.workingCopy()}'`);
- InspectorTest.addResult(`fileSystem code: '${fileSystemCode.workingCopy()}'`);
- next();
- }
- }
+ function setNetworkWorkingCopy(next)
+ {
+ InspectorTest.addSniffer(Persistence.Persistence.prototype, "_contentSyncedForTest", dumpWorkingCopiesAndNext.bind(null, next));
+ networkCode.setWorkingCopy("window.foo5 = 5;");
+ },
]);
+
+ function dumpWorkingCopiesAndNext(next) {
+ InspectorTest.addResult(`network code: '${networkCode.workingCopy()}'`);
+ InspectorTest.addResult(`fileSystem code: '${fileSystemCode.workingCopy()}'`);
+ next();
+ }
};
</script>
</head>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698