historical.html (3396B)
1 <!doctype html> 2 <title>Historical Geometry APIs</title> 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <link rel=help href="https://drafts.fxtf.org/geometry/#changes"> 6 <script> 7 // Removed members 8 [ 9 // https://github.com/w3c/fxtf-drafts/commit/99e3212469026b2f2f50926a41912d110a1741b7 10 ['DOMMatrix', 'scaleNonUniformSelf'], 11 // https://github.com/w3c/fxtf-drafts/commit/86da3dc961d442f9d8dc7ab59065a9804e109286 12 ['DOMMatrix', 'multiplyBy'], 13 ['DOMMatrix', 'preMultiplyBy'], 14 ['DOMMatrix', 'translateBy'], 15 ['DOMMatrix', 'scaleBy'], 16 ['DOMMatrix', 'scale3dBy'], 17 ['DOMMatrix', 'scaleNonUniformBy'], 18 ['DOMMatrix', 'rotateBy'], 19 ['DOMMatrix', 'rotateFromVectorBy'], 20 ['DOMMatrix', 'rotateAxisAngleBy'], 21 ['DOMMatrix', 'skewXBy'], 22 ['DOMMatrix', 'skewYBy'], 23 // https://github.com/w3c/fxtf-drafts/commit/555a8c0beb1b7b809ccebd861a0352df31530b56 24 ['DOMQuad', 'bounds'], 25 ].forEach(([interf, member]) => { 26 test(() => { 27 assert_true(interf in self, `${interf} should exist`); 28 assert_false(member in self[interf].prototype, 'on prototype'); 29 const instance = new self[interf](); 30 assert_false(member in instance, 'on instance'); 31 }, `${interf} ${member} must be nuked`); 32 }); 33 34 // Removed static methods 35 // https://github.com/w3c/fxtf-drafts/commit/3c43462bcc857bb830f8af04532cdf33c5a634aa 36 ['DOMMatrix', 'DOMMatrixReadOnly'].forEach(interf => { 37 test(() => { 38 assert_true(interf in self, `${interf} should exist`); 39 assert_false('fromString' in self[interf], 'on interface object'); 40 }, `${interf} fromString static member must be nuked`); 41 }); 42 43 // Optional arguments 44 [ 45 // https://github.com/w3c/fxtf-drafts/commit/99e3212469026b2f2f50926a41912d110a1741b7 46 ['DOMMatrixReadOnly', 'scale'], 47 ['DOMMatrix', 'scaleSelf'], 48 // https://github.com/w3c/fxtf-drafts/commit/8493a9c3d94da91ead5db6e05b51319494f5855f 49 ['DOMMatrixReadOnly', 'translate'], 50 ['DOMMatrixReadOnly', 'scale3d'], 51 ['DOMMatrixReadOnly', 'rotateFromVector'], 52 ['DOMMatrixReadOnly', 'rotateAxisAngle'], 53 ['DOMMatrixReadOnly', 'skewX'], 54 ['DOMMatrixReadOnly', 'skewY'], 55 ['DOMMatrix', 'translateSelf'], 56 ['DOMMatrix', 'scale3dSelf'], 57 ['DOMMatrix', 'rotateFromVectorSelf'], 58 ['DOMMatrix', 'rotateAxisAngleSelf'], 59 ['DOMMatrix', 'skewXSelf'], 60 ['DOMMatrix', 'skewYSelf'], 61 // https://github.com/w3c/fxtf-drafts/commit/62b9cb9d5be4982d2a9cbf314e3a59efb8a68dd6 62 ['DOMPointReadOnly', 'matrixTransform'], 63 ['DOMMatrixReadOnly', 'multiply'], 64 ['DOMMatrix', 'multiplySelf'], 65 ['DOMMatrix', 'preMultiplySelf'], 66 ].forEach(([interf, member]) => { 67 test(() => { 68 assert_equals(self[interf].prototype[member].length, 0, 'on prototype'); 69 const instance = new self[interf](); 70 assert_equals(instance[member].length, 0, 'on instance'); 71 }, `${interf} ${member} number of required arguments`); 72 }); 73 74 // Renamed interfaces 75 [ 76 // https://github.com/w3c/fxtf-drafts/commit/9031c94c8536cec7f7007c18d7be037a793e5ed5 77 'CSSMatrix', 78 // https://github.com/w3c/csswg-drafts/commit/8d01810fe403bc935c24ee5a29101cac9b958c8c 79 'DOMMatrixImmutable', 80 // https://github.com/w3c/csswg-drafts/commit/6e05c3ee01528daba6dc0776f342beae577cefa9 81 'ClientRect', 82 'ClientRectList', 83 // Non-standard 84 'WebKitPoint', 85 'MSCSSMatrix', 86 ].forEach(interf => { 87 test(() => { 88 assert_false(interf in self); 89 }, `${interf} must be nuked`); 90 }); 91 </script>