OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Geometry Interfaces: WebKitCSSMatrix</title> |
| 3 <link rel="help" href="https://drafts.fxtf.org/geometry/#DOMMatrix"> |
| 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script> |
| 7 test(() => { |
| 8 assert_true('WebKitCSSMatrix' in self, 'WebKitCSSMatrix should exist'); |
| 9 assert_true('DOMMatrix' in self, 'DOMMatrix should exist'); |
| 10 assert_equals(WebKitCSSMatrix, DOMMatrix, 'interface object'); |
| 11 assert_equals(WebKitCSSMatrix.prototype, DOMMatrix.prototype, 'prototype'); |
| 12 }, 'Equivalence test'); |
| 13 |
| 14 ['WebKitCSSMatrix', 'DOMMatrix'].forEach(interf => { |
| 15 test(() => { |
| 16 const desc = Object.getOwnPropertyDescriptor(self, interf); |
| 17 assert_equals(desc.value, self[interf], 'value'); |
| 18 assert_true(desc.writable, 'writable'); |
| 19 assert_true(desc.configurable, 'configurable'); |
| 20 assert_false(desc.enumerable, 'enumerable'); |
| 21 assert_equals(desc.get, undefined, 'get'); |
| 22 assert_equals(desc.set, undefined, 'set'); |
| 23 }, `Property descriptor for ${interf}`); |
| 24 }); |
| 25 </script> |
OLD | NEW |