Bug 1610783 [wpt PR 21338] - Add harness support to assert DataView type, a=testonly
authorFrançois Beaufort <beaufort.francois@gmail.com>
Wed, 29 Jan 2020 08:03:32 +0000
changeset 512246 eaefd52a166015874d7259928f5ccc49cc893b57
parent 512245 db1d5134a2ebc0c7cb793136d678de061aba238b
child 512247 6e23553a05946e2894012005f24ab4cef762f901
push id106279
push userwptsync@mozilla.com
push dateFri, 31 Jan 2020 20:44:12 +0000
treeherderautoland@c5cd3d0d3741 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1610783, 21338
milestone74.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 1610783 [wpt PR 21338] - Add harness support to assert DataView type, a=testonly Automatic update from web-platform-tests Add idlharness support to assert DataView type (#21338) -- wpt-commits: ec9357334addcda43bcf4de572c05675fc7a53d9 wpt-pr: 21338
testing/web-platform/tests/resources/idlharness.js
--- a/testing/web-platform/tests/resources/idlharness.js
+++ b/testing/web-platform/tests/resources/idlharness.js
@@ -1185,16 +1185,20 @@ IdlArray.prototype.assert_type_is = func
             assert_regexp_match(value, /^[\x00-\x7F]*$/);
             return;
 
         case "USVString":
             assert_equals(typeof value, "string");
             assert_regexp_match(value, /^([\x00-\ud7ff\ue000-\uffff]|[\ud800-\udbff][\udc00-\udfff])*$/);
             return;
 
+        case "DataView":
+            assert_equals(typeof value, "DataView");
+            return;
+
         case "object":
             assert_in_array(typeof value, ["object", "function"], "wrong type: not object or function");
             return;
     }
 
     if (!(type in this.members))
     {
         throw new IdlHarnessError("Unrecognized type " + type);