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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/inspector/profiler/profiler-test.js ('k') | LayoutTests/inspector/tracing-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 5
6 function test() 6 function test()
7 { 7 {
8 var cleaner = new WebInspector.TempStorageCleaner(); 8 WebInspector.TempFile.ensureTempStorageCleared()
9 function finish() 9 .then(function finish() {
10 { 10 InspectorTest.addResult("PASSED: we got a call from TempStorageC leaner that it had done the job.");
11 InspectorTest.addResult("PASSED: we got a call from TempStorageCleaner t hat it had done the job."); 11 }, function(e) {
12 InspectorTest.completeTest(); 12 InspectorTest.addResult("FAILED: we got a rejection: " + e);
13 } 13 })
14 cleaner.ensureStorageCleared(finish); 14 .then(InspectorTest.completeTest);
15 } 15 }
16 16
17 </script> 17 </script>
18 </head> 18 </head>
19 19
20 <body onload="runTest()"> 20 <body onload="runTest()">
21 <p> 21 <p>
22 This test checks TempStorageCleaner which is used in HeapProfiler. 22 This test checks TempStorageCleaner which is used in HeapProfiler.
23 </p> 23 </p>
24 24
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW
« 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