OLD | NEW |
(Empty) | |
| 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/99e3212469026b2f2f50926a41912d110
a1741b7 |
| 10 ['DOMMatrixReadOnly', 'scaleNonUniform'], |
| 11 ['DOMMatrix', 'scaleNonUniformSelf'], |
| 12 // https://github.com/w3c/fxtf-drafts/commit/86da3dc961d442f9d8dc7ab59065a9804
e109286 |
| 13 ['DOMMatrix', 'multiplyBy'], |
| 14 ['DOMMatrix', 'preMultiplyBy'], |
| 15 ['DOMMatrix', 'translateBy'], |
| 16 ['DOMMatrix', 'scaleBy'], |
| 17 ['DOMMatrix', 'scale3dBy'], |
| 18 ['DOMMatrix', 'scaleNonUniformBy'], |
| 19 ['DOMMatrix', 'rotateBy'], |
| 20 ['DOMMatrix', 'rotateFromVectorBy'], |
| 21 ['DOMMatrix', 'rotateAxisAngleBy'], |
| 22 ['DOMMatrix', 'skewXBy'], |
| 23 ['DOMMatrix', 'skewYBy'], |
| 24 ].forEach(([interf, member]) => { |
| 25 test(() => { |
| 26 assert_true(interf in self, `${interf} should exist`); |
| 27 assert_false(member in self[interf].prototype, 'on prototype'); |
| 28 const instance = new self[interf](); |
| 29 assert_false(member in instance, 'on instance'); |
| 30 }, `${interf} ${member} must be nuked`); |
| 31 }); |
| 32 |
| 33 // Removed static methods |
| 34 // https://github.com/w3c/fxtf-drafts/commit/3c43462bcc857bb830f8af04532cdf33c5a
634aa |
| 35 ['DOMMatrix', 'DOMMatrixReadOnly'].forEach(interf => { |
| 36 test(() => { |
| 37 assert_true(interf in self, `${interf} should exist`); |
| 38 assert_false('fromString' in self[interf], 'on interface object'); |
| 39 }, `${interf} fromString static member must be nuked`); |
| 40 }); |
| 41 |
| 42 // Optional arguments |
| 43 [ |
| 44 // https://github.com/w3c/fxtf-drafts/commit/99e3212469026b2f2f50926a41912d110
a1741b7 |
| 45 ['DOMMatrixReadOnly', 'scale'], |
| 46 ['DOMMatrix', 'scaleSelf'], |
| 47 // https://github.com/w3c/fxtf-drafts/commit/8493a9c3d94da91ead5db6e05b5131949
4f5855f |
| 48 ['DOMMatrixReadOnly', 'translate'], |
| 49 ['DOMMatrixReadOnly', 'scale3d'], |
| 50 ['DOMMatrixReadOnly', 'rotateFromVector'], |
| 51 ['DOMMatrixReadOnly', 'rotateAxisAngle'], |
| 52 ['DOMMatrixReadOnly', 'skewX'], |
| 53 ['DOMMatrixReadOnly', 'skewY'], |
| 54 ['DOMMatrix', 'translateSelf'], |
| 55 ['DOMMatrix', 'scale3dSelf'], |
| 56 ['DOMMatrix', 'rotateFromVectorSelf'], |
| 57 ['DOMMatrix', 'rotateAxisAngleSelf'], |
| 58 ['DOMMatrix', 'skewXSelf'], |
| 59 ['DOMMatrix', 'skewYSelf'], |
| 60 // https://github.com/w3c/fxtf-drafts/commit/62b9cb9d5be4982d2a9cbf314e3a59efb
8a68dd6 |
| 61 ['DOMPointReadOnly', 'matrixTransform'], |
| 62 ['DOMMatrixReadOnly', 'multiply'], |
| 63 ['DOMMatrix', 'multiplySelf'], |
| 64 ['DOMMatrix', 'preMultiplySelf'], |
| 65 ].forEach(([interf, member]) => { |
| 66 test(() => { |
| 67 assert_equals(self[interf].prototype[member].length, 0, 'on prototype'); |
| 68 const instance = new self[interf](); |
| 69 assert_equals(instance[member].length, 0, 'on instance'); |
| 70 }, `${interf} ${member} number of required arguments`); |
| 71 }); |
| 72 |
| 73 // Renamed interfaces |
| 74 // https://github.com/w3c/fxtf-drafts/commit/9031c94c8536cec7f7007c18d7be037a793
e5ed5 |
| 75 test(() => { |
| 76 assert_false('CSSMatrix' in self); |
| 77 }, 'CSSMatrix must be nuked'); |
| 78 </script> |
OLD | NEW |