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

Unified Diff: LayoutTests/crypto/exportKey.html

Issue 141413003: [webcrypto] Match the error handling defined by the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/crypto/exportKey.html
diff --git a/LayoutTests/crypto/exportKey.html b/LayoutTests/crypto/exportKey.html
index 54c4caa19caa6bc1e68621a3779a0eac7f077445..cebc4eda27baef045083689e1aad57c52d70135b 100644
--- a/LayoutTests/crypto/exportKey.html
+++ b/LayoutTests/crypto/exportKey.html
@@ -13,7 +13,7 @@ description("Tests cypto.subtle.exportKey.");
jsTestIsAsync = true;
-importTestKeys().then(function(result) {
+addTask(importTestKeys().then(function(result) {
keys = result;
// Invalid export formats.
@@ -26,10 +26,12 @@ importTestKeys().then(function(result) {
shouldThrow("crypto.subtle.exportKey('raw', 3)");
shouldBe("keys.aesCbcJustDecrypt.extractable", "false")
- shouldThrow("crypto.subtle.exportKey('raw', keys.aesCbcJustDecrypt)");
+ shouldRejectPromiseWithNull("crypto.subtle.exportKey('raw', keys.aesCbcJustDecrypt)");
// TODO(eroman): exportKey() is not implemented.
-}).then(finishJSTest, failAndFinishJSTest);
+}));
+
+completeTestWhenAllTasksDone();
</script>
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt-expected.txt ('k') | LayoutTests/crypto/exportKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698