Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/geometry-1/WebKitCSSMatrix.html

Issue 2873663002: Import WPT css/geometry-1 (Closed)
Patch Set: x Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698