Changeset 203476 in webkit


Ignore:
Timestamp:
Jul 20, 2016 4:14:39 PM (8 years ago)
Author:
jiewen_tan@apple.com
Message:

Fix timeout of imported/w3c/WebCryptoAPI/idlharness.html
https://bugs.webkit.org/show_bug.cgi?id=159979

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

Add missing resources.

  • WebCryptoAPI/idlharness-expected.txt:
  • WebCryptoAPI/idlharness.html:
  • resources/WebIDLParser.js: Added.

(tokenise):
(WebIDLParseError):
(WebIDLParseError.prototype.toString):
(error):
(consume):
(ws):
(all_ws):
(integer_type):
(float_type):
(primitive_type):
(const_value):
(type_suffix):
(single_type):
(union_type):
(type):
(argument):
(argument_list):
(type_pair):
(simple_extended_attr):
(extended_attrs):
(default_):
(const_):
(inheritance):
(operation_rest):
(callback):
(attribute):
(return_type):
(operation):
(identifiers):
(serialiser):
(iterable_type):
(readonly_iterable_type):
(iterable):
(interface_):
(partial):
(dictionary):
(exception):
(enum_):
(parse):

  • resources/idlharness.js: Added.

(constValue):
(minOverloadLength):
(throwOrReject):
(awaitNCallbacks):
(return.fround):
(fround):
(self.IdlArray):
(IdlArray.prototype.add_idls):
(IdlArray.prototype.add_untested_idls):
(IdlArray.prototype.internal_add_idls):
(IdlArray.prototype.add_objects):
(IdlArray.prototype.prevent_multiple_testing):
(IdlArray.prototype.recursively_get_implements):
(exposed_in):
(IdlArray.prototype.test):
(IdlArray.prototype.assert_type_is):
(IdlObject):
(IdlObject.prototype.test):
(IdlObject.prototype.has_extended_attribute):
(IdlInterface):
(IdlInterface.prototype.is_callback):
(IdlInterface.prototype.has_constants):
(IdlInterface.prototype.is_global):
(IdlInterface.prototype.test):
(IdlInterface.prototype.test_self):
(IdlInterface.prototype.test_member_const):
(IdlInterface.prototype.test_member_attribute):
(IdlInterface.prototype.test_member_operation):
(IdlInterface.prototype.do_member_operation_asserts):
(IdlInterface.prototype.test_member_stringifier):
(IdlInterface.prototype.test_members):
(IdlInterface.prototype.test_object):
(IdlInterface.prototype.test_primary_interface_of):
(IdlInterface.prototype.test_interface_of):
(IdlInterface.prototype.has_stringifier):
(IdlInterface.prototype.do_interface_attribute_asserts):
(IdlInterfaceMember):
(create_suitable_object):
(IdlEnum):
(IdlTypedef):

LayoutTests:

Remove the skip tuple of the test.

Location:
trunk/LayoutTests
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r203475 r203476  
     12016-07-20  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Fix timeout of imported/w3c/WebCryptoAPI/idlharness.html
     4        https://bugs.webkit.org/show_bug.cgi?id=159979
     5
     6        Reviewed by Alex Christensen.
     7
     8        * TestExpectations:
     9        Remove the skip tuple of the test.
     10
    1112016-07-20  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/LayoutTests/TestExpectations

    r203405 r203476  
    10391039imported/w3c/WebCryptoAPI/generateKey/test_successes_RSASSA-PKCS1-v1_5.html [ Skip ]
    10401040imported/w3c/WebCryptoAPI/generateKey/test_successes.html [ Skip ]
    1041 imported/w3c/WebCryptoAPI/idlharness.html [ Skip ]
    10421041
    10431042editing/deleting/delete-emoji.html [ Slow ]
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r203474 r203476  
     12016-07-20  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Fix timeout of imported/w3c/WebCryptoAPI/idlharness.html
     4        https://bugs.webkit.org/show_bug.cgi?id=159979
     5
     6        Reviewed by Alex Christensen.
     7
     8        Add missing resources.
     9
     10        * WebCryptoAPI/idlharness-expected.txt:
     11        * WebCryptoAPI/idlharness.html:
     12        * resources/WebIDLParser.js: Added.
     13        (tokenise):
     14        (WebIDLParseError):
     15        (WebIDLParseError.prototype.toString):
     16        (error):
     17        (consume):
     18        (ws):
     19        (all_ws):
     20        (integer_type):
     21        (float_type):
     22        (primitive_type):
     23        (const_value):
     24        (type_suffix):
     25        (single_type):
     26        (union_type):
     27        (type):
     28        (argument):
     29        (argument_list):
     30        (type_pair):
     31        (simple_extended_attr):
     32        (extended_attrs):
     33        (default_):
     34        (const_):
     35        (inheritance):
     36        (operation_rest):
     37        (callback):
     38        (attribute):
     39        (return_type):
     40        (operation):
     41        (identifiers):
     42        (serialiser):
     43        (iterable_type):
     44        (readonly_iterable_type):
     45        (iterable):
     46        (interface_):
     47        (partial):
     48        (dictionary):
     49        (exception):
     50        (enum_):
     51        (parse):
     52        * resources/idlharness.js: Added.
     53        (constValue):
     54        (minOverloadLength):
     55        (throwOrReject):
     56        (awaitNCallbacks):
     57        (return.fround):
     58        (fround):
     59        (self.IdlArray):
     60        (IdlArray.prototype.add_idls):
     61        (IdlArray.prototype.add_untested_idls):
     62        (IdlArray.prototype.internal_add_idls):
     63        (IdlArray.prototype.add_objects):
     64        (IdlArray.prototype.prevent_multiple_testing):
     65        (IdlArray.prototype.recursively_get_implements):
     66        (exposed_in):
     67        (IdlArray.prototype.test):
     68        (IdlArray.prototype.assert_type_is):
     69        (IdlObject):
     70        (IdlObject.prototype.test):
     71        (IdlObject.prototype.has_extended_attribute):
     72        (IdlInterface):
     73        (IdlInterface.prototype.is_callback):
     74        (IdlInterface.prototype.has_constants):
     75        (IdlInterface.prototype.is_global):
     76        (IdlInterface.prototype.test):
     77        (IdlInterface.prototype.test_self):
     78        (IdlInterface.prototype.test_member_const):
     79        (IdlInterface.prototype.test_member_attribute):
     80        (IdlInterface.prototype.test_member_operation):
     81        (IdlInterface.prototype.do_member_operation_asserts):
     82        (IdlInterface.prototype.test_member_stringifier):
     83        (IdlInterface.prototype.test_members):
     84        (IdlInterface.prototype.test_object):
     85        (IdlInterface.prototype.test_primary_interface_of):
     86        (IdlInterface.prototype.test_interface_of):
     87        (IdlInterface.prototype.has_stringifier):
     88        (IdlInterface.prototype.do_interface_attribute_asserts):
     89        (IdlInterfaceMember):
     90        (create_suitable_object):
     91        (IdlEnum):
     92        (IdlTypedef):
     93
    1942016-07-20  Chris Dumez  <cdumez@apple.com>
    295
  • trunk/LayoutTests/imported/w3c/WebCryptoAPI/idlharness-expected.txt

    r203201 r203476  
    1 FAIL: Timed out waiting for notifyDone to be called
     1Description
    22
     3This test verifies that the implementations of the WebCrypto API match with its WebIDL definition.
     4
     5
     6PASS Crypto interface: existence and properties of interface object
     7PASS Crypto interface object length
     8PASS Crypto interface object name
     9PASS Crypto interface: existence and properties of interface prototype object
     10PASS Crypto interface: existence and properties of interface prototype object's "constructor" property
     11FAIL Crypto interface: attribute subtle assert_true: The prototype object must have a property "subtle" expected true got false
     12PASS Crypto interface: operation getRandomValues(ArrayBufferView)
     13PASS Crypto must be primary interface of crypto
     14PASS Stringification of crypto
     15FAIL Crypto interface: crypto must inherit property "subtle" with the proper type (0) assert_inherits: property "subtle" not found in prototype chain
     16PASS Crypto interface: crypto must inherit property "getRandomValues" with the proper type (1)
     17PASS Crypto interface: calling getRandomValues(ArrayBufferView) on crypto with too few arguments must throw TypeError
     18FAIL CryptoKey interface: existence and properties of interface object assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     19FAIL CryptoKey interface object length assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     20FAIL CryptoKey interface object name assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     21FAIL CryptoKey interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     22FAIL CryptoKey interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     23FAIL CryptoKey interface: attribute type assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     24FAIL CryptoKey interface: attribute extractable assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     25FAIL CryptoKey interface: attribute algorithm assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     26FAIL CryptoKey interface: attribute usages assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing
     27FAIL SubtleCrypto interface: existence and properties of interface object assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     28FAIL SubtleCrypto interface object length assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     29FAIL SubtleCrypto interface object name assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     30FAIL SubtleCrypto interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     31FAIL SubtleCrypto interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     32FAIL SubtleCrypto interface: operation encrypt(AlgorithmIdentifier,CryptoKey,BufferSource) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     33FAIL SubtleCrypto interface: operation decrypt(AlgorithmIdentifier,CryptoKey,BufferSource) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     34FAIL SubtleCrypto interface: operation sign(AlgorithmIdentifier,CryptoKey,BufferSource) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     35FAIL SubtleCrypto interface: operation verify(AlgorithmIdentifier,CryptoKey,BufferSource,BufferSource) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     36FAIL SubtleCrypto interface: operation digest(AlgorithmIdentifier,BufferSource) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     37FAIL SubtleCrypto interface: operation generateKey(AlgorithmIdentifier,boolean,[object Object]) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     38FAIL SubtleCrypto interface: operation deriveKey(AlgorithmIdentifier,CryptoKey,AlgorithmIdentifier,boolean,[object Object]) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     39FAIL SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier,CryptoKey,unsigned long) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     40FAIL SubtleCrypto interface: operation importKey(KeyFormat,[object Object],[object Object],AlgorithmIdentifier,boolean,[object Object]) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     41FAIL SubtleCrypto interface: operation exportKey(KeyFormat,CryptoKey) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     42FAIL SubtleCrypto interface: operation wrapKey(KeyFormat,CryptoKey,CryptoKey,AlgorithmIdentifier) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     43FAIL SubtleCrypto interface: operation unwrapKey(KeyFormat,BufferSource,CryptoKey,AlgorithmIdentifier,AlgorithmIdentifier,boolean,[object Object]) assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing
     44FAIL SubtleCrypto must be primary interface of crypto.subtle assert_equals: wrong typeof object expected "object" but got "undefined"
     45FAIL Stringification of crypto.subtle assert_equals: wrong typeof object expected "object" but got "undefined"
     46FAIL SubtleCrypto interface: crypto.subtle must inherit property "encrypt" with the proper type (0) assert_equals: wrong typeof object expected "object" but got "undefined"
     47FAIL SubtleCrypto interface: calling encrypt(AlgorithmIdentifier,CryptoKey,BufferSource) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     48FAIL SubtleCrypto interface: crypto.subtle must inherit property "decrypt" with the proper type (1) assert_equals: wrong typeof object expected "object" but got "undefined"
     49FAIL SubtleCrypto interface: calling decrypt(AlgorithmIdentifier,CryptoKey,BufferSource) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     50FAIL SubtleCrypto interface: crypto.subtle must inherit property "sign" with the proper type (2) assert_equals: wrong typeof object expected "object" but got "undefined"
     51FAIL SubtleCrypto interface: calling sign(AlgorithmIdentifier,CryptoKey,BufferSource) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     52FAIL SubtleCrypto interface: crypto.subtle must inherit property "verify" with the proper type (3) assert_equals: wrong typeof object expected "object" but got "undefined"
     53FAIL SubtleCrypto interface: calling verify(AlgorithmIdentifier,CryptoKey,BufferSource,BufferSource) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     54FAIL SubtleCrypto interface: crypto.subtle must inherit property "digest" with the proper type (4) assert_equals: wrong typeof object expected "object" but got "undefined"
     55FAIL SubtleCrypto interface: calling digest(AlgorithmIdentifier,BufferSource) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     56FAIL SubtleCrypto interface: crypto.subtle must inherit property "generateKey" with the proper type (5) assert_equals: wrong typeof object expected "object" but got "undefined"
     57FAIL SubtleCrypto interface: calling generateKey(AlgorithmIdentifier,boolean,[object Object]) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     58FAIL SubtleCrypto interface: crypto.subtle must inherit property "deriveKey" with the proper type (6) assert_equals: wrong typeof object expected "object" but got "undefined"
     59FAIL SubtleCrypto interface: calling deriveKey(AlgorithmIdentifier,CryptoKey,AlgorithmIdentifier,boolean,[object Object]) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     60FAIL SubtleCrypto interface: crypto.subtle must inherit property "deriveBits" with the proper type (7) assert_equals: wrong typeof object expected "object" but got "undefined"
     61FAIL SubtleCrypto interface: calling deriveBits(AlgorithmIdentifier,CryptoKey,unsigned long) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     62FAIL SubtleCrypto interface: crypto.subtle must inherit property "importKey" with the proper type (8) assert_equals: wrong typeof object expected "object" but got "undefined"
     63FAIL SubtleCrypto interface: calling importKey(KeyFormat,[object Object],[object Object],AlgorithmIdentifier,boolean,[object Object]) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     64FAIL SubtleCrypto interface: crypto.subtle must inherit property "exportKey" with the proper type (9) assert_equals: wrong typeof object expected "object" but got "undefined"
     65FAIL SubtleCrypto interface: calling exportKey(KeyFormat,CryptoKey) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     66FAIL SubtleCrypto interface: crypto.subtle must inherit property "wrapKey" with the proper type (10) assert_equals: wrong typeof object expected "object" but got "undefined"
     67FAIL SubtleCrypto interface: calling wrapKey(KeyFormat,CryptoKey,CryptoKey,AlgorithmIdentifier) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     68FAIL SubtleCrypto interface: crypto.subtle must inherit property "unwrapKey" with the proper type (11) assert_equals: wrong typeof object expected "object" but got "undefined"
     69FAIL SubtleCrypto interface: calling unwrapKey(KeyFormat,BufferSource,CryptoKey,AlgorithmIdentifier,AlgorithmIdentifier,boolean,[object Object]) on crypto.subtle with too few arguments must throw TypeError assert_equals: wrong typeof object expected "object" but got "undefined"
     70
  • trunk/LayoutTests/imported/w3c/WebCryptoAPI/idlharness.html

    r203201 r203476  
     1
    12<!doctype html>
    23<html>
     
    89<script src=../../../resources/testharness.js></script>
    910<script src=../../../resources/testharnessreport.js></script>
    10 <script src=/resources/WebIDLParser.js></script>
    11 <script src=/resources/idlharness.js></script>
     11<script src=../resources/WebIDLParser.js></script>
     12<script src=../resources/idlharness.js></script>
    1213</head>
    1314<body>
Note: See TracChangeset for help on using the changeset viewer.