Fix failing test.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Dec 2016 23:59:20 +0000 (23:59 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Dec 2016 23:59:20 +0000 (23:59 +0000)
* http/tests/ssl/applepay/ApplePaySession-expected.txt:
* http/tests/ssl/applepay/ApplePaySession.html:
Update results to match latest IDL.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@209949 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/http/tests/ssl/applepay/ApplePaySession-expected.txt
LayoutTests/http/tests/ssl/applepay/ApplePaySession.html

index 6f83f41..3a09017 100644 (file)
@@ -1,3 +1,11 @@
+2016-12-16  Sam Weinig  <sam@webkit.org>
+
+        Fix failing test.
+
+        * http/tests/ssl/applepay/ApplePaySession-expected.txt:
+        * http/tests/ssl/applepay/ApplePaySession.html:
+        Update results to match latest IDL.
+
 2016-12-16  Andy Estes  <aestes@apple.com>
 
         Add a setting to suppress keyboard input during provisional navigation
index f2ddfe1..1b1bc47 100644 (file)
@@ -239,12 +239,12 @@ Testing PaymentRequest.billingContact
 SETUP: request = validRequest(); request.billingContact = '';
 PASS new ApplePaySession(2, request) threw exception TypeError: Type error.
 
-SETUP: request = validRequest(); request.billingContact = null;
-PASS new ApplePaySession(2, request) threw exception TypeError: Type error.
-
 SETUP: request = validRequest(); request.billingContact = 7;
 PASS new ApplePaySession(2, request) threw exception TypeError: Type error.
 
+SETUP: request = validRequest(); request.billingContact = null;
+PASS new ApplePaySession(2, request) did not throw exception.
+
 SETUP: request = validRequest(); request.billingContact = undefined;
 PASS new ApplePaySession(2, request) did not throw exception.
 
@@ -297,12 +297,12 @@ Testing PaymentRequest.shippingContact
 SETUP: request = validRequest(); request.shippingContact = '';
 PASS new ApplePaySession(2, request) threw exception TypeError: Type error.
 
-SETUP: request = validRequest(); request.shippingContact = null;
-PASS new ApplePaySession(2, request) threw exception TypeError: Type error.
-
 SETUP: request = validRequest(); request.shippingContact = 7;
 PASS new ApplePaySession(2, request) threw exception TypeError: Type error.
 
+SETUP: request = validRequest(); request.shippingContact = null;
+PASS new ApplePaySession(2, request) did not throw exception.
+
 SETUP: request = validRequest(); request.shippingContact = undefined;
 PASS new ApplePaySession(2, request) did not throw exception.
 
index b5db27f..cae52db 100644 (file)
@@ -142,8 +142,8 @@ function go() {
     debug("Testing PaymentRequest.billingContact")
     debug("");
     logAndShouldThrow("request = validRequest(); request.billingContact = '';", "new ApplePaySession(2, request)")
-    logAndShouldThrow("request = validRequest(); request.billingContact = null;", "new ApplePaySession(2, request)")
     logAndShouldThrow("request = validRequest(); request.billingContact = 7;", "new ApplePaySession(2, request)")
+    logAndShouldNotThrow("request = validRequest(); request.billingContact = null;", "new ApplePaySession(2, request)")
     logAndShouldNotThrow("request = validRequest(); request.billingContact = undefined;", "new ApplePaySession(2, request)")
     logAndShouldNotThrow("request = validRequest(); request.billingContact = { };", "new ApplePaySession(2, request)")
     
@@ -167,8 +167,8 @@ function go() {
     debug("Testing PaymentRequest.shippingContact")
     debug("");
     logAndShouldThrow("request = validRequest(); request.shippingContact = '';", "new ApplePaySession(2, request)")
-    logAndShouldThrow("request = validRequest(); request.shippingContact = null;", "new ApplePaySession(2, request)")
     logAndShouldThrow("request = validRequest(); request.shippingContact = 7;", "new ApplePaySession(2, request)")
+    logAndShouldNotThrow("request = validRequest(); request.shippingContact = null;", "new ApplePaySession(2, request)")
     logAndShouldNotThrow("request = validRequest(); request.shippingContact = undefined;", "new ApplePaySession(2, request)")
     logAndShouldNotThrow("request = validRequest(); request.shippingContact = { };", "new ApplePaySession(2, request)")