[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / storage / storageinfo-request-quota.html
1 <html>
2 <head>
3 <script src="../resources/js-test-pre.js"></script>
4 <script src="resources/fs-test-util.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description("This tests webkitStorageInfo.requestQuota.");
11
12 function errorCallback(error)
13 {
14     testFailed("Error occurred: " + error);
15     finishJSTest();
16 }
17
18 var grantedQuota;
19 function quotaCallback(newQuota)
20 {
21     grantedQuota = newQuota;
22
23     // We must be given 0 quota, the same amount as we requested.
24     shouldBe("grantedQuota", "0");
25
26     finishJSTest();
27 }
28
29 if (window.webkitStorageInfo) {
30     window.jsTestIsAsync = true;
31
32     // Requesting '0' quota for testing (this request must be almost always granted without showing any platform specific notification UI).
33     webkitStorageInfo.requestQuota(webkitStorageInfo.TEMPORARY, 0, quotaCallback, errorCallback);
34 } else
35     debug("This test requires window.webkitStorageInfo.");
36
37 window.successfullyParsed = true;
38
39 </script>
40 <script src="../resources/js-test-post.js"></script>
41 </body>
42 </html>