diff options
author | Till Schneidereit <till@tillschneidereit.net> | 2015-07-21 17:03:45 +0200 |
---|---|---|
committer | Till Schneidereit <till@tillschneidereit.net> | 2015-07-23 19:09:36 +0200 |
commit | b692187ca242fbbac7a49ab97c93b8b0f83165d7 (patch) | |
tree | 248cdc3b43f6929bf5a326f0cde22947eedd7f48 | |
parent | 3a5e4335d7ff993a859bc5876243423fe4936441 (diff) | |
download | servo-b692187ca242fbbac7a49ab97c93b8b0f83165d7.tar.gz servo-b692187ca242fbbac7a49ab97c93b8b0f83165d7.zip |
Implement DOMPoint and DOMPointReadOnly
Passes some but not all WPT tests. One failure is caused by an issue in codegen for the `DOMPointInit` dictionary, the others by outdated tests: Gecko implements an old version of the spec that overloaded the `DOMPoint` constructor to optionally take an object as the first argument, and made `DOMPointReadOnly` non-constructible.
47 files changed, 855 insertions, 28 deletions
diff --git a/components/script/dom/dompoint.rs b/components/script/dom/dompoint.rs new file mode 100644 index 00000000000..9e392da03db --- /dev/null +++ b/components/script/dom/dompoint.rs @@ -0,0 +1,69 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +use dom::bindings::codegen::Bindings::DOMPointBinding::{DOMPointMethods, Wrap}; +use dom::bindings::codegen::Bindings::DOMPointReadOnlyBinding::DOMPointReadOnlyMethods; +use dom::bindings::error::Fallible; +use dom::bindings::global::GlobalRef; +use dom::bindings::js::Root; +use dom::bindings::utils::reflect_dom_object; +use dom::dompointreadonly::{DOMPointReadOnly, DOMPointWriteMethods}; + +// http://dev.w3.org/fxtf/geometry/Overview.html#dompoint +#[dom_struct] +pub struct DOMPoint { + point: DOMPointReadOnly +} + +impl DOMPoint { + fn new_inherited(x: f64, y: f64, z: f64, w: f64) -> DOMPoint { + DOMPoint { + point: DOMPointReadOnly::new_inherited(x, y, z, w), + } + } + + pub fn new(global: GlobalRef, x: f64, y: f64, z: f64, w: f64) -> Root<DOMPoint> { + reflect_dom_object(box DOMPoint::new_inherited(x, y, z, w), global, Wrap) + } + + pub fn Constructor(global: GlobalRef, + x: f64, y: f64, z: f64, w: f64) -> Fallible<Root<DOMPoint>> { + Ok(DOMPoint::new(global, x, y, z, w)) + } +} + +impl<'a> DOMPointMethods for &'a DOMPoint { + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-x + fn X(self) -> f64 { + self.point.X() + } + fn SetX(self, value: f64) { + self.point.SetX(value); + } + + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-y + fn Y(self) -> f64 { + self.point.Y() + } + fn SetY(self, value: f64) { + self.point.SetY(value); + } + + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-z + fn Z(self) -> f64 { + self.point.Z() + } + fn SetZ(self, value: f64) { + self.point.SetZ(value); + } + + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-w + fn W(self) -> f64 { + self.point.W() + } + fn SetW(self, value: f64) { + self.point.SetW(value); + } +} + diff --git a/components/script/dom/dompointreadonly.rs b/components/script/dom/dompointreadonly.rs new file mode 100644 index 00000000000..c6f40dfa7ef --- /dev/null +++ b/components/script/dom/dompointreadonly.rs @@ -0,0 +1,88 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +use dom::bindings::codegen::Bindings::DOMPointReadOnlyBinding::{DOMPointReadOnlyMethods, Wrap}; +use dom::bindings::error::Fallible; +use dom::bindings::global::GlobalRef; +use dom::bindings::js::Root; +use dom::bindings::utils::{Reflector, reflect_dom_object}; +use std::cell::Cell; + +// http://dev.w3.org/fxtf/geometry/Overview.html#dompointreadonly +#[dom_struct] +pub struct DOMPointReadOnly { + reflector_: Reflector, + x: Cell<f64>, + y: Cell<f64>, + z: Cell<f64>, + w: Cell<f64>, +} + +impl DOMPointReadOnly { + pub fn new_inherited(x: f64, y: f64, z: f64, w: f64) -> DOMPointReadOnly { + DOMPointReadOnly { + x: Cell::new(x), + y: Cell::new(y), + z: Cell::new(z), + w: Cell::new(w), + reflector_: Reflector::new(), + } + } + + pub fn new(global: GlobalRef, x: f64, y: f64, z: f64, w: f64) -> Root<DOMPointReadOnly> { + reflect_dom_object(box DOMPointReadOnly::new_inherited(x, y, z, w), global, Wrap) + } + + pub fn Constructor(global: GlobalRef, + x: f64, y: f64, z: f64, w: f64) -> Fallible<Root<DOMPointReadOnly>> { + Ok(DOMPointReadOnly::new(global, x, y, z, w)) + } +} + +impl<'a> DOMPointReadOnlyMethods for &'a DOMPointReadOnly { + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-x + fn X(self) -> f64 { + self.x.get() + } + + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-y + fn Y(self) -> f64 { + self.y.get() + } + + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-z + fn Z(self) -> f64 { + self.z.get() + } + + // http://dev.w3.org/fxtf/geometry/Overview.html#dom-dompointreadonly-w + fn W(self) -> f64 { + self.w.get() + } +} + +pub trait DOMPointWriteMethods { + fn SetX(self, value: f64); + fn SetY(self, value: f64); + fn SetZ(self, value: f64); + fn SetW(self, value: f64); +} + +impl<'a> DOMPointWriteMethods for &'a DOMPointReadOnly { + fn SetX(self, value: f64) { + self.x.set(value); + } + + fn SetY(self, value: f64) { + self.y.set(value); + } + + fn SetZ(self, value: f64) { + self.z.set(value); + } + + fn SetW(self, value: f64) { + self.w.set(value); + } +} diff --git a/components/script/dom/mod.rs b/components/script/dom/mod.rs index 88695f8cc04..d3294cb184b 100644 --- a/components/script/dom/mod.rs +++ b/components/script/dom/mod.rs @@ -190,6 +190,8 @@ pub mod canvasrenderingcontext2d; pub mod characterdata; pub mod css; pub mod cssstyledeclaration; +pub mod dompoint; +pub mod dompointreadonly; pub mod domrect; pub mod domrectlist; pub mod domstringmap; diff --git a/components/script/dom/webidls/DOMPoint.webidl b/components/script/dom/webidls/DOMPoint.webidl new file mode 100644 index 00000000000..6903ff99458 --- /dev/null +++ b/components/script/dom/webidls/DOMPoint.webidl @@ -0,0 +1,22 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * The origin of this IDL file is + * http://dev.w3.org/fxtf/geometry/ + * + * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C + * liability, trademark and document use rules apply. + */ + +// http://dev.w3.org/fxtf/geometry/Overview.html#dompoint +[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, + optional unrestricted double z = 0, optional unrestricted double w = 1), + /*Exposed=(Window,Worker)*/] +interface DOMPoint : DOMPointReadOnly { + inherit attribute unrestricted double x; + inherit attribute unrestricted double y; + inherit attribute unrestricted double z; + inherit attribute unrestricted double w; +}; diff --git a/components/script/dom/webidls/DOMPointReadOnly.webidl b/components/script/dom/webidls/DOMPointReadOnly.webidl new file mode 100644 index 00000000000..6bff491a58c --- /dev/null +++ b/components/script/dom/webidls/DOMPointReadOnly.webidl @@ -0,0 +1,29 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * The origin of this IDL file is + * http://dev.w3.org/fxtf/geometry/ + * + * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C + * liability, trademark and document use rules apply. + */ + +// http://dev.w3.org/fxtf/geometry/Overview.html#dompointreadonly +[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, + optional unrestricted double z = 0, optional unrestricted double w = 1), + /*Exposed=(Window,Worker)*/] +interface DOMPointReadOnly { + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double z; + readonly attribute unrestricted double w; +}; + +dictionary DOMPointInit { + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double z = 0; + unrestricted double w = 1; +}; diff --git a/tests/wpt/include_css.ini b/tests/wpt/include_css.ini index 58e9fe941a1..0eedb0092d5 100644 --- a/tests/wpt/include_css.ini +++ b/tests/wpt/include_css.ini @@ -4,4 +4,10 @@ skip: true [xhtml1] skip: true [xhtml1print] + skip: true +[geometry-1_dev] + skip: false + [xhtml1] + skip: true + [xhtml1print] skip: true
\ No newline at end of file diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-001.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-001.htm.ini index ba414f439d7..39acb131c91 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-001.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-001.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-001.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-002.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-002.htm.ini index 344a81e5d9d..8e3097445bc 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-002.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-002.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-002.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-003.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-003.htm.ini index b8b1b0ca390..4ac8490bee7 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-003.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-003.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-003.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-004.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-004.htm.ini index 0398928458f..860c8bc05cb 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-004.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-004.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-004.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-005.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-005.htm.ini index 54b95f28a88..6a936002e9f 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-005.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-005.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-005.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-006.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-006.htm.ini index 662545c687b..9bf0fb3a6b9 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-006.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-006.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-006.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-013.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-013.htm.ini index 6bdca5570df..c6eb97baee3 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-013.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-013.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-013.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-015.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-015.htm.ini index d8f2b123aa4..52da8bc0c32 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-015.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/color-applies-to-015.htm.ini @@ -1,4 +1,4 @@ [color-applies-to-015.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/content-177.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/content-177.htm.ini index d12254cd75b..2718774ccd2 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/content-177.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/content-177.htm.ini @@ -1,5 +1,5 @@ [content-177.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/display-008.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/display-008.htm.ini index 85b6be4b7bd..c55b7b7697c 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/display-008.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/display-008.htm.ini @@ -1,4 +1,4 @@ [display-008.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/display-009.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/display-009.htm.ini index d5367595bfd..71e73f15eda 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/display-009.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/display-009.htm.ini @@ -1,4 +1,4 @@ [display-009.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/float-applies-to-008.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/float-applies-to-008.htm.ini index 6bfc3a2f34f..4920c5f1f6f 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/float-applies-to-008.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/float-applies-to-008.htm.ini @@ -1,4 +1,4 @@ [float-applies-to-008.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-001.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-001.htm.ini index 9e64e8f7e3c..deef4416853 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-001.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-001.htm.ini @@ -1,5 +1,5 @@ [font-size-001.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-002.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-002.htm.ini index 5731311dbe0..fc9230118ee 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-002.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-002.htm.ini @@ -1,5 +1,5 @@ [font-size-002.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-004.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-004.htm.ini index 94d29b0f40a..e7375013226 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-004.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-004.htm.ini @@ -1,5 +1,5 @@ [font-size-004.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-005.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-005.htm.ini index 5340c65b0a9..c795ff4514a 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-005.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-005.htm.ini @@ -1,5 +1,5 @@ [font-size-005.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-089.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-089.htm.ini index d9bfede5725..778e5040570 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-089.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-089.htm.ini @@ -1,5 +1,5 @@ [font-size-089.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-090.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-090.htm.ini index 741d5d9ba11..cee1000c0ff 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-090.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-090.htm.ini @@ -1,5 +1,5 @@ [font-size-090.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-092.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-092.htm.ini index 5ea584fad66..556fee70a0a 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-092.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-092.htm.ini @@ -1,5 +1,5 @@ [font-size-092.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-093.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-093.htm.ini index 386cbbc9860..796ac0041af 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-093.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-093.htm.ini @@ -1,5 +1,5 @@ [font-size-093.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-100.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-100.htm.ini index db17fbfe083..7b6e4078b05 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-100.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-100.htm.ini @@ -1,5 +1,5 @@ [font-size-100.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-101.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-101.htm.ini index fa36de044ee..b9f8127516f 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-101.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-101.htm.ini @@ -1,5 +1,5 @@ [font-size-101.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/font-size-102.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/font-size-102.htm.ini index b832dd2c35e..1c0291c692b 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/font-size-102.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/font-size-102.htm.ini @@ -1,5 +1,5 @@ [font-size-102.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/inline-block-zorder-003.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/inline-block-zorder-003.htm.ini index 4b008a8af9b..93496ef1249 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/inline-block-zorder-003.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/inline-block-zorder-003.htm.ini @@ -1,4 +1,4 @@ [inline-block-zorder-003.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-004.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-004.htm.ini index 42db7e86e86..ad30c030413 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-004.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-004.htm.ini @@ -1,4 +1,4 @@ [inline-formatting-context-004.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-005.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-005.htm.ini index 11735f272d8..3627db12bd6 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-005.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/inline-formatting-context-005.htm.ini @@ -1,4 +1,4 @@ [inline-formatting-context-005.htm] type: reftest expected: - if (os == "mac"): FAIL + if os == "mac": FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/line-height-121.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/line-height-121.htm.ini index b849e528bdd..261ae003d41 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/line-height-121.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/line-height-121.htm.ini @@ -1,5 +1,5 @@ [line-height-121.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/css21_dev/html4/line-height-127.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/line-height-127.htm.ini index f3c5085851b..62c9781a239 100644 --- a/tests/wpt/metadata-css/css21_dev/html4/line-height-127.htm.ini +++ b/tests/wpt/metadata-css/css21_dev/html4/line-height-127.htm.ini @@ -1,5 +1,5 @@ [line-height-127.htm] type: reftest expected: - if (os == "mac"): PASS + if os == "mac": PASS FAIL diff --git a/tests/wpt/metadata-css/geometry-1_dev/html/DOMMatrix-001.htm.ini b/tests/wpt/metadata-css/geometry-1_dev/html/DOMMatrix-001.htm.ini new file mode 100644 index 00000000000..d95299476fe --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/html/DOMMatrix-001.htm.ini @@ -0,0 +1,53 @@ +[DOMMatrix-001.htm] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructor6] + expected: FAIL + + [testConstructor7] + expected: FAIL + + [testConstructor8] + expected: FAIL + + [testConstructor9] + expected: FAIL + + [testConstructor10] + expected: FAIL + + [testConstructor11] + expected: FAIL + + [testConstructor12] + expected: FAIL + + [testConstructor13] + expected: FAIL + + [testConstructorIllegal0] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/html/DOMPoint-001.htm.ini b/tests/wpt/metadata-css/geometry-1_dev/html/DOMPoint-001.htm.ini new file mode 100644 index 00000000000..1561861922b --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/html/DOMPoint-001.htm.ini @@ -0,0 +1,41 @@ +[DOMPoint-001.htm] + type: testharness + [testConstructorDictionary2undefined] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructorDictionary0] + expected: FAIL + + [testConstructorDictionary1] + expected: FAIL + + [testConstructorDictionary2] + expected: FAIL + + [testConstructorDictionary3] + expected: FAIL + + [testConstructorDictionary4] + expected: FAIL + + [testConstructorDictionary5] + expected: FAIL + + [testConstructorDictionary2irregular] + expected: FAIL + + [testConstructorDOMPoint] + expected: FAIL + + [testConstructorUndefined2] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/html/DOMQuad-001.htm.ini b/tests/wpt/metadata-css/geometry-1_dev/html/DOMQuad-001.htm.ini new file mode 100644 index 00000000000..5b5251cba31 --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/html/DOMQuad-001.htm.ini @@ -0,0 +1,65 @@ +[DOMQuad-001.htm] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructor6] + expected: FAIL + + [testConstructor7] + expected: FAIL + + [testConstructor8] + expected: FAIL + + [testConstructor9] + expected: FAIL + + [testConstructor10] + expected: FAIL + + [testConstructor11] + expected: FAIL + + [testConstructor12] + expected: FAIL + + [testConstructor13] + expected: FAIL + + [testConstructor14] + expected: FAIL + + [testConstructor15] + expected: FAIL + + [testConstructor16] + expected: FAIL + + [p1Top4Attributes0] + expected: FAIL + + [p1Top4Attributes1] + expected: FAIL + + [boundsAttribute0] + expected: FAIL + + [boundsAttribute1] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/html/DOMRect-001.htm.ini b/tests/wpt/metadata-css/geometry-1_dev/html/DOMRect-001.htm.ini new file mode 100644 index 00000000000..f4b30308f6c --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/html/DOMRect-001.htm.ini @@ -0,0 +1,44 @@ +[DOMRect-001.htm] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructorNegativeWidth] + expected: FAIL + + [testConstructorNegativeHeight] + expected: FAIL + + [testConstructorNegativeWidthHeight] + expected: FAIL + + [testConstructorUndefined1] + expected: FAIL + + [testConstructorUndefined2] + expected: FAIL + + [testConstructorString1] + expected: FAIL + + [testConstructorString2] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + + [testSetReadOnlyAttributes] + expected: FAIL + + [testSetAttributes] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMMatrix-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMMatrix-001.xht.ini new file mode 100644 index 00000000000..cfca795465b --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMMatrix-001.xht.ini @@ -0,0 +1,53 @@ +[DOMMatrix-001.xht] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructor6] + expected: FAIL + + [testConstructor7] + expected: FAIL + + [testConstructor8] + expected: FAIL + + [testConstructor9] + expected: FAIL + + [testConstructor10] + expected: FAIL + + [testConstructor11] + expected: FAIL + + [testConstructor12] + expected: FAIL + + [testConstructor13] + expected: FAIL + + [testConstructorIllegal0] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMPoint-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMPoint-001.xht.ini new file mode 100644 index 00000000000..8293d683b6d --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMPoint-001.xht.ini @@ -0,0 +1,41 @@ +[DOMPoint-001.xht] + type: testharness + [testConstructorDictionary2undefined] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructorDictionary0] + expected: FAIL + + [testConstructorDictionary1] + expected: FAIL + + [testConstructorDictionary2] + expected: FAIL + + [testConstructorDictionary3] + expected: FAIL + + [testConstructorDictionary4] + expected: FAIL + + [testConstructorDictionary5] + expected: FAIL + + [testConstructorDictionary2irregular] + expected: FAIL + + [testConstructorDOMPoint] + expected: FAIL + + [testConstructorUndefined2] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMQuad-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMQuad-001.xht.ini new file mode 100644 index 00000000000..ee2c2c723c7 --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMQuad-001.xht.ini @@ -0,0 +1,65 @@ +[DOMQuad-001.xht] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructor6] + expected: FAIL + + [testConstructor7] + expected: FAIL + + [testConstructor8] + expected: FAIL + + [testConstructor9] + expected: FAIL + + [testConstructor10] + expected: FAIL + + [testConstructor11] + expected: FAIL + + [testConstructor12] + expected: FAIL + + [testConstructor13] + expected: FAIL + + [testConstructor14] + expected: FAIL + + [testConstructor15] + expected: FAIL + + [testConstructor16] + expected: FAIL + + [p1Top4Attributes0] + expected: FAIL + + [p1Top4Attributes1] + expected: FAIL + + [boundsAttribute0] + expected: FAIL + + [boundsAttribute1] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMRect-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMRect-001.xht.ini new file mode 100644 index 00000000000..2ed11f56b57 --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1/DOMRect-001.xht.ini @@ -0,0 +1,44 @@ +[DOMRect-001.xht] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructorNegativeWidth] + expected: FAIL + + [testConstructorNegativeHeight] + expected: FAIL + + [testConstructorNegativeWidthHeight] + expected: FAIL + + [testConstructorUndefined1] + expected: FAIL + + [testConstructorUndefined2] + expected: FAIL + + [testConstructorString1] + expected: FAIL + + [testConstructorString2] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + + [testSetReadOnlyAttributes] + expected: FAIL + + [testSetAttributes] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMMatrix-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMMatrix-001.xht.ini new file mode 100644 index 00000000000..cfca795465b --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMMatrix-001.xht.ini @@ -0,0 +1,53 @@ +[DOMMatrix-001.xht] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructor6] + expected: FAIL + + [testConstructor7] + expected: FAIL + + [testConstructor8] + expected: FAIL + + [testConstructor9] + expected: FAIL + + [testConstructor10] + expected: FAIL + + [testConstructor11] + expected: FAIL + + [testConstructor12] + expected: FAIL + + [testConstructor13] + expected: FAIL + + [testConstructorIllegal0] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMPoint-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMPoint-001.xht.ini new file mode 100644 index 00000000000..8293d683b6d --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMPoint-001.xht.ini @@ -0,0 +1,41 @@ +[DOMPoint-001.xht] + type: testharness + [testConstructorDictionary2undefined] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructorDictionary0] + expected: FAIL + + [testConstructorDictionary1] + expected: FAIL + + [testConstructorDictionary2] + expected: FAIL + + [testConstructorDictionary3] + expected: FAIL + + [testConstructorDictionary4] + expected: FAIL + + [testConstructorDictionary5] + expected: FAIL + + [testConstructorDictionary2irregular] + expected: FAIL + + [testConstructorDOMPoint] + expected: FAIL + + [testConstructorUndefined2] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMQuad-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMQuad-001.xht.ini new file mode 100644 index 00000000000..ee2c2c723c7 --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMQuad-001.xht.ini @@ -0,0 +1,65 @@ +[DOMQuad-001.xht] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructor6] + expected: FAIL + + [testConstructor7] + expected: FAIL + + [testConstructor8] + expected: FAIL + + [testConstructor9] + expected: FAIL + + [testConstructor10] + expected: FAIL + + [testConstructor11] + expected: FAIL + + [testConstructor12] + expected: FAIL + + [testConstructor13] + expected: FAIL + + [testConstructor14] + expected: FAIL + + [testConstructor15] + expected: FAIL + + [testConstructor16] + expected: FAIL + + [p1Top4Attributes0] + expected: FAIL + + [p1Top4Attributes1] + expected: FAIL + + [boundsAttribute0] + expected: FAIL + + [boundsAttribute1] + expected: FAIL + diff --git a/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMRect-001.xht.ini b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMRect-001.xht.ini new file mode 100644 index 00000000000..2ed11f56b57 --- /dev/null +++ b/tests/wpt/metadata-css/geometry-1_dev/xhtml1print/DOMRect-001.xht.ini @@ -0,0 +1,44 @@ +[DOMRect-001.xht] + type: testharness + [testConstructor0] + expected: FAIL + + [testConstructor4] + expected: FAIL + + [testConstructor5] + expected: FAIL + + [testConstructorNegativeWidth] + expected: FAIL + + [testConstructorNegativeHeight] + expected: FAIL + + [testConstructorNegativeWidthHeight] + expected: FAIL + + [testConstructorUndefined1] + expected: FAIL + + [testConstructorUndefined2] + expected: FAIL + + [testConstructorString1] + expected: FAIL + + [testConstructorString2] + expected: FAIL + + [testConstructorIllegal1] + expected: FAIL + + [testConstructorIllegal2] + expected: FAIL + + [testSetReadOnlyAttributes] + expected: FAIL + + [testSetAttributes] + expected: FAIL + diff --git a/tests/wpt/mozilla/tests/mozilla/interfaces.html b/tests/wpt/mozilla/tests/mozilla/interfaces.html index 9d33f8ae54e..f011f51668c 100644 --- a/tests/wpt/mozilla/tests/mozilla/interfaces.html +++ b/tests/wpt/mozilla/tests/mozilla/interfaces.html @@ -79,6 +79,8 @@ var interfaceNamesInGlobalScope = [ "CloseEvent", "CSS", "CSSStyleDeclaration", + "DOMPoint", + "DOMPointReadOnly", "DOMRect", "Comment", "Console", |