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

Side by Side Diff: LayoutTests/storage/domstorage/localstorage/storagetracker/storage-tracker-7-usage.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698