Bug 1466014 [wpt PR 11286] - Check if a type is a sequence through idlType.generic, a=testonly
authorChris Nardi <christopherncarmel@hotmail.com>
Wed, 06 Jun 2018 17:47:59 +0000
changeset 422279 460ddda505c070dbddfc25efa2b558ca023495e4
parent 422278 680145aa247436c3612a6797b8d6bfd2935d42bf
child 422280 c25dc373434e2371ca298db6498e20fc965a4f3d
push id34122
push userebalazs@mozilla.com
push dateMon, 11 Jun 2018 09:37:00 +0000
treeherdermozilla-central@9941eb8c3b29 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1466014, 11286
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1466014 [wpt PR 11286] - Check if a type is a sequence through idlType.generic, a=testonly Automatic update from web-platform-testsCheck if a type is a sequence through idlType.generic idlType.sequence was removed in https://github.com/w3c/webidl2.js/pull/175, as the same check can be achieved through `idlType.generic === "sequence"`. Move to this more updated syntax so that updating webidl2.js will require less work the next time we do it. -- wpt-commits: b1a1415cdf23bb3dc5c2f2ccb58a7abe87b93961 wpt-pr: 11286
testing/web-platform/tests/resources/idlharness.js
--- a/testing/web-platform/tests/resources/idlharness.js
+++ b/testing/web-platform/tests/resources/idlharness.js
@@ -882,17 +882,17 @@ IdlArray.prototype.assert_type_is = func
     }
 
     if (type.array)
     {
         // TODO: not supported yet
         return;
     }
 
-    if (type.sequence)
+    if (type.generic === "sequence")
     {
         assert_true(Array.isArray(value), "should be an Array");
         if (!value.length)
         {
             // Nothing we can do.
             return;
         }
         this.assert_type_is(value[0], type.idlType);