| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../../fast/js/resources/js-test-pre.js"></script> | |
| 4 </head> | |
| 5 <body> | |
| 6 <p id="description"></p> | |
| 7 <div id="console"></div> | |
| 8 <script> | |
| 9 description("Test API that reports local storage disk usage by origin. NOTE: thi
s test DEPENDS on storage-tracker-6-create.html to create local storage for the
'file://' origin. If this test runs in a separate DRT instance from storage-trac
ker-6-create.html, it may FAIL if there is no local storage!"); | |
| 10 | |
| 11 function test() | |
| 12 { | |
| 13 if (!window.localStorage) { | |
| 14 testFailed("localStorage DOES NOT exist"); | |
| 15 return; | |
| 16 } | |
| 17 | |
| 18 if (testRunner.originsWithLocalStorage().length > 0) { | |
| 19 shouldBeEqualToString("testRunner.originsWithLocalStorage().toString()",
"file__0"); | |
| 20 shouldBeTrue("testRunner.localStorageDiskUsageForOrigin('file://') > 610
0"); | |
| 21 } else { | |
| 22 testFailed("Ran with no origins with local storage."); | |
| 23 } | |
| 24 | |
| 25 } | |
| 26 | |
| 27 test(); | |
| 28 | |
| 29 isSuccessfullyParsed(); | |
| 30 </script> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |