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

Unified Diff: LayoutTests/storage/quota/storagequota-request-persistent-quota.html

Issue 669353002: Fix broken Promise-related layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@return-rejected
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/storage/quota/storagequota-request-persistent-quota.html
diff --git a/LayoutTests/storage/quota/storagequota-request-persistent-quota.html b/LayoutTests/storage/quota/storagequota-request-persistent-quota.html
index da350db14f21f78c88852feb2bd33bbfacb8494e..942b349e866b9903b5046da5092d540917fbf55e 100644
--- a/LayoutTests/storage/quota/storagequota-request-persistent-quota.html
+++ b/LayoutTests/storage/quota/storagequota-request-persistent-quota.html
@@ -32,8 +32,11 @@ function runRequestQuotaTest() {
function runRequestQuotaWithMisingArgumentTest() {
debug("* Requesting persistent quota with missing argument.");
- shouldThrow("navigator.storageQuota.requestPersistentQuota()");
- runNextTest();
+ navigator.storageQuota.requestPersistentQuota().then(function() {
+ testFailed('resolved unexpectedly');
+ }, function(e) {
+ testPassed('rejected as expected: ' + e);
+ }).then(runNextTest);
}
function runRequestQuotaWithNegativeValueTest() {

Powered by Google App Engine
This is Rietveld 408576698