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