Bug 1444316 [wpt PR 9939] - idl: Fix [EnforceRange] annotations, a=testonly
authorHitoshi Yoshida <peria@chromium.org>
Mon, 09 Apr 2018 14:34:11 +0000
changeset 413454 08d9920b8266a41addf1625047172b868260c062
parent 413453 617aa7ff212bde9c77dcfece83952e9187f510f3
child 413455 1ba389b58ab983ade0a33922b1c7be1cd15ba226
push id33850
push userapavel@mozilla.com
push dateMon, 16 Apr 2018 09:53:48 +0000
treeherdermozilla-central@6276ec7ebbf3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1444316, 819112, 952589, 542375
milestone61.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 1444316 [wpt PR 9939] - idl: Fix [EnforceRange] annotations, a=testonly Automatic update from web-platform-testsidl: Fix [EnforceRange] annotations This CL fixes usages of [EnforceRange] annotations in IDL files. No changes on behaviors. CSSUnitValue: [EnforceRange] can't annotate non-integer numbers, and the spec doesn't have the annotation. OffscreenCanvas: The spec doesn't have [EnforceRange], but it seems the spec is wrong. (requesting to update the spec; https://github.com/whatwg/html/issues/3540) IDBFactory and IDBIndex: Follows spec. Test IDLs: This CL works for tests in Chromium repository, and following tests need to be upstream for WPT. - wpt/interfaces/IndexedDB.idl - wpt/interfaces/WebCryptoAPI.idl Bug: 819112 Change-Id: If7082cba0251a83e269fea428340b3b61d4c17cf Reviewed-on: https://chromium-review.googlesource.com/952589 Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#542375} wpt-commits: b0a57a68e724525f4432d23ab2a84aa9364e75cf wpt-pr: 9939 wpt-commits: b0a57a68e724525f4432d23ab2a84aa9364e75cf wpt-pr: 9939
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/IndexedDB.idl
testing/web-platform/tests/interfaces/WebCryptoAPI.idl
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -571493,25 +571493,25 @@
    "f585014db144083ee2f70f6fd65f78bf2e289093",
    "manual"
   ],
   "interfaces/FileAPI.idl": [
    "2a12d457a38d00109c0f6423bf3e3f16fcc700c9",
    "support"
   ],
   "interfaces/IndexedDB.idl": [
-   "f367517cad717e2066ad8179df9ba5aa3b402c97",
+   "3df484f3207920891c278bd99ec22e4029aa039f",
    "support"
   ],
   "interfaces/OWNERS": [
    "389275a34cb76282af66797b3cd06b72a3b9ddbe",
    "support"
   ],
   "interfaces/WebCryptoAPI.idl": [
-   "87b02fc82a1b204ac59a51932e58f9369b4a77c6",
+   "1fa169a6badb1c21608f1e1a68075939e913603f",
    "support"
   ],
   "interfaces/accelerometer.idl": [
    "a834258dac3ad510dec10425b9f79648547e0b42",
    "support"
   ],
   "interfaces/ambient-light.idl": [
    "bdede54deab80b5465f904a9726ee86f1260858d",
--- a/testing/web-platform/tests/interfaces/IndexedDB.idl
+++ b/testing/web-platform/tests/interfaces/IndexedDB.idl
@@ -37,17 +37,17 @@ dictionary IDBVersionChangeEventInit : E
 
 partial interface WindowOrWorkerGlobalScope {
   [SameObject] readonly attribute IDBFactory indexedDB;
 };
 
 [Exposed=(Window,Worker)]
 interface IDBFactory {
   IDBOpenDBRequest open(DOMString name,
-                        [EnforceRange] optional unsigned long long version);
+                        optional [EnforceRange] unsigned long long version);
   IDBOpenDBRequest deleteDatabase(DOMString name);
 
   short cmp(any first, any second);
 };
 
 [Exposed=(Window,Worker)]
 interface IDBDatabase : EventTarget {
   readonly attribute DOMString          name;
--- a/testing/web-platform/tests/interfaces/WebCryptoAPI.idl
+++ b/testing/web-platform/tests/interfaces/WebCryptoAPI.idl
@@ -126,17 +126,17 @@ typedef Uint8Array BigInteger;
 
 dictionary CryptoKeyPair {
   CryptoKey publicKey;
   CryptoKey privateKey;
 };
 
 dictionary RsaKeyGenParams : Algorithm {
   // The length, in bits, of the RSA modulus
-  [EnforceRange] required unsigned long modulusLength;
+  required [EnforceRange] unsigned long modulusLength;
   // The RSA public exponent
   required BigInteger publicExponent;
 };
 
 dictionary RsaHashedKeyGenParams : RsaKeyGenParams {
   // The hash algorithm to use
   required HashAlgorithmIdentifier hash;
 };