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

Unified Diff: LayoutTests/inspector/profiler/temp-storage-cleaner.html

Issue 705063004: DevTools: Promisify WebInspector.TempFile (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 1 month 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 | « LayoutTests/inspector/profiler/profiler-test.js ('k') | LayoutTests/inspector/tracing-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/profiler/temp-storage-cleaner.html
diff --git a/LayoutTests/inspector/profiler/temp-storage-cleaner.html b/LayoutTests/inspector/profiler/temp-storage-cleaner.html
index 57e67743345587516629a45797cdd30ace86ad74..1b989965f213fd989f64526bc4503e30a6e18ee4 100644
--- a/LayoutTests/inspector/profiler/temp-storage-cleaner.html
+++ b/LayoutTests/inspector/profiler/temp-storage-cleaner.html
@@ -5,13 +5,13 @@
function test()
{
- var cleaner = new WebInspector.TempStorageCleaner();
- function finish()
- {
- InspectorTest.addResult("PASSED: we got a call from TempStorageCleaner that it had done the job.");
- InspectorTest.completeTest();
- }
- cleaner.ensureStorageCleared(finish);
+ WebInspector.TempFile.ensureTempStorageCleared()
+ .then(function finish() {
+ InspectorTest.addResult("PASSED: we got a call from TempStorageCleaner that it had done the job.");
+ }, function(e) {
+ InspectorTest.addResult("FAILED: we got a rejection: " + e);
+ })
+ .then(InspectorTest.completeTest);
}
</script>
« no previous file with comments | « LayoutTests/inspector/profiler/profiler-test.js ('k') | LayoutTests/inspector/tracing-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698