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

Side by Side Diff: LayoutTests/storage/domstorage/localstorage/storagetracker/storage-tracker-5-delete-one.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 to view origins that have local storage and to delete loca l storage by origin.");
10
11 if (window.testRunner)
12 testRunner.waitUntilDone();
13
14 function finishTest() {
15 if (window.testRunner)
16 testRunner.notifyDone();
17 }
18
19 function test()
20 {
21 if (!window.localStorage) {
22 testFailed("localStorage DOES NOT exist");
23 return;
24 }
25
26 if (testRunner.originsWithLocalStorage().length > 0) {
27 shouldBeEqualToString("testRunner.originsWithLocalStorage().toString()", "file__0");
28 // We're just going to delete the existing origin, so we'll get one orig in change notification.
29 testRunner.observeStorageTrackerNotifications(1);
30 // At this point, we're guaranteed to have one origin with local storage .
31 testRunner.deleteLocalStorageForOrigin("file://");
32 } else {
33 testFailed("Ran with no origins with local storage.");
34 testRunner.notifyDone();
35 }
36
37 }
38
39 test();
40
41 isSuccessfullyParsed();
42 </script>
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698