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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/workers/resources/storagequota-query-usage.js

Issue 1896043002: WorkerNavigator: Remove deprecated Quota Management API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment in IDL. Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/workers/resources/worker-storagequota-query-usage.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 description("This tests querying usage and quota using Quota API.");
3
4 if (navigator.webkitTemporaryStorage) {
5 window.jsTestIsAsync = true;
6 // navigator.webkitTemporaryStorage.queryUsageAndQuota(usageCallback, errorC allback);
7 }
8
9 var worker = createWorker();
10
11 worker.postMessage("ping");
12 worker.postMessage("eval importScripts('worker-storagequota-query-usage.js');");
13 worker.postMessage("eval requestUsage(self.port || self)");
14 worker.onmessage = function(evt) {
15 var match = /^result:(.*)/.exec(evt.data);
16 if (match) {
17 usageData = JSON.parse(match[1]);
18
19 // Quota value would vary depending on the test environment.
20 shouldBeGreaterThanOrEqual("usageData.usage", "0");
21 shouldBeGreaterThanOrEqual("usageData.quota", "usageData.usage");
22
23 worker.postMessage("close");
24 finishJSTest();
25 }
26 };
27
28 window.successfullyParsed = true;
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/workers/resources/worker-storagequota-query-usage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698