| OLD | NEW |
| 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 WebInspector.TempFile.ensureTempStorageCleared() | 8 Bindings.TempFile.ensureTempStorageCleared() |
| 9 .then(function finish() { | 9 .then(function finish() { |
| 10 InspectorTest.addResult("PASSED: we got a call from TempStorageC
leaner that it had done the job."); | 10 InspectorTest.addResult("PASSED: we got a call from TempStorageC
leaner that it had done the job."); |
| 11 }, function(e) { | 11 }, function(e) { |
| 12 InspectorTest.addResult("FAILED: we got a rejection: " + e); | 12 InspectorTest.addResult("FAILED: we got a rejection: " + e); |
| 13 }) | 13 }) |
| 14 .then(InspectorTest.completeTest); | 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> |
| OLD | NEW |