| 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>
|
|
|