diff options
10 files changed, 50 insertions, 14 deletions
diff --git a/tests/wpt/css-tests/geometry-1_dev/html/DOMRect-001.htm b/tests/wpt/css-tests/geometry-1_dev/html/DOMRect-001.htm index 9c6b1ff4dab..2467510174c 100644 --- a/tests/wpt/css-tests/geometry-1_dev/html/DOMRect-001.htm +++ b/tests/wpt/css-tests/geometry-1_dev/html/DOMRect-001.htm @@ -26,13 +26,16 @@ { x: 0, y: 0, width: 0, height: 0, top: 0, right: 0, bottom: 0, left: 0 }); },'testConstructor0'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1); }); + checkDOMRect(new DOMRect(1), + { x: 1, y: 0, width: 0, height: 0, top: 0, right: 1, bottom: 0, left: 1 }); },'testConstructor1'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1, 2); }); + checkDOMRect(new DOMRect(1, 2), + { x: 1, y: 2, width: 0, height: 0, top: 2, right: 1, bottom: 2, left: 1 }); },'testConstructor2'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1, 2, 3); }); + checkDOMRect(new DOMRect(1, 2, 3), + { x: 1, y: 2, width: 3, height: 0, top: 2, right: 4, bottom: 2, left: 1 }); },'testConstructor3'); test(function() { checkDOMRect(new DOMRect(1, 2, 3, 4), diff --git a/tests/wpt/css-tests/geometry-1_dev/implementation-report-TEMPLATE.data b/tests/wpt/css-tests/geometry-1_dev/implementation-report-TEMPLATE.data index 95d65f1fedd..7f6ff80305e 100644 --- a/tests/wpt/css-tests/geometry-1_dev/implementation-report-TEMPLATE.data +++ b/tests/wpt/css-tests/geometry-1_dev/implementation-report-TEMPLATE.data @@ -9,5 +9,5 @@ html/dompoint-001.htm 4eab429b2c693c8262acc9c9e4b8fe388ccefe7d ? xhtml1/dompoint-001.xht 4eab429b2c693c8262acc9c9e4b8fe388ccefe7d ? html/domquad-001.htm 55abae26ff2b8b770ae585a4373ca850270f920b ? xhtml1/domquad-001.xht 55abae26ff2b8b770ae585a4373ca850270f920b ? -html/domrect-001.htm 1e80e3a9f2498b6395bad44875ad8ecb31fb76e4 ? -xhtml1/domrect-001.xht 1e80e3a9f2498b6395bad44875ad8ecb31fb76e4 ? +html/domrect-001.htm a5a47b5f64f9f0148de72d0093892bdbc64b3c63 ? +xhtml1/domrect-001.xht a5a47b5f64f9f0148de72d0093892bdbc64b3c63 ? diff --git a/tests/wpt/css-tests/geometry-1_dev/testinfo.data b/tests/wpt/css-tests/geometry-1_dev/testinfo.data index b1f85b33d20..19cabaea7b3 100644 --- a/tests/wpt/css-tests/geometry-1_dev/testinfo.data +++ b/tests/wpt/css-tests/geometry-1_dev/testinfo.data @@ -2,4 +2,4 @@ id references title flags links revision credits assertion DOMMatrix-001 Geometry Interfaces: DOMMatrix and DOMMatrixReadOnly constructors script http://www.w3.org/TR/geometry-1/#DOMMatrix,http://www.w3.org/TR/geometry-1/#dommatrix-constructors,http://www.w3.org/TR/geometry-1/#dom-dommatrix-dommatrix 9ef5062544554f66a8c941d084bf9fd707277436 `Dirk Schulze`<mailto:dschulze@adobe.com> DOMPoint-001 Geometry Interfaces: DOMPoint and DOMPointReadOnly interface tests script http://www.w3.org/TR/geometry-1/#DOMPoint,http://www.w3.org/TR/geometry-1/#dictdef-dompointinit,http://www.w3.org/TR/geometry-1/#dom-dompoint-dompoint,http://www.w3.org/TR/geometry-1/#dom-dompointreadonly-dompoint-x,http://www.w3.org/TR/geometry-1/#dom-dompointreadonly-dompoint-y,http://www.w3.org/TR/geometry-1/#dom-dompointreadonly-dompoint-z,http://www.w3.org/TR/geometry-1/#dom-dompointreadonly-dompoint-w 4eab429b2c693c8262acc9c9e4b8fe388ccefe7d `Dirk Schulze`<mailto:dschulze@adobe.com> DOMQuad-001 Geometry Interfaces: DOMQuad interface tests script http://www.w3.org/TR/geometry-1/#DOMQuad,http://www.w3.org/TR/geometry-1/#dom-domquad-domquad,http://www.w3.org/TR/geometry-1/#dom-domquad-p1,http://www.w3.org/TR/geometry-1/#dom-domquad-p2,http://www.w3.org/TR/geometry-1/#dom-domquad-p3,http://www.w3.org/TR/geometry-1/#dom-domquad-p4,http://www.w3.org/TR/geometry-1/#dom-domquad-bounds 55abae26ff2b8b770ae585a4373ca850270f920b `Dirk Schulze`<mailto:dschulze@adobe.com> -DOMRect-001 Geometry Interfaces: DOMRect and DOMRectReadOnly interface tests script http://www.w3.org/TR/geometry-1/#DOMRect,http://www.w3.org/TR/geometry-1/#dom-domrect,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly,http://www.w3.org/TR/geometry-1/#dom-domrect-domrect,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-x,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-y,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-width,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-height,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-top,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-left,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-right,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-bottom 1e80e3a9f2498b6395bad44875ad8ecb31fb76e4 `Dirk Schulze`<mailto:dschulze@adobe.com> +DOMRect-001 Geometry Interfaces: DOMRect and DOMRectReadOnly interface tests script http://www.w3.org/TR/geometry-1/#DOMRect,http://www.w3.org/TR/geometry-1/#dom-domrect,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly,http://www.w3.org/TR/geometry-1/#dom-domrect-domrect,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-x,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-y,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-width,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-height,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-top,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-left,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-right,http://www.w3.org/TR/geometry-1/#dom-domrectreadonly-domrect-bottom a5a47b5f64f9f0148de72d0093892bdbc64b3c63 `Dirk Schulze`<mailto:dschulze@adobe.com> diff --git a/tests/wpt/css-tests/geometry-1_dev/xhtml1/DOMRect-001.xht b/tests/wpt/css-tests/geometry-1_dev/xhtml1/DOMRect-001.xht index 7bcde2e0282..aea651f270a 100644 --- a/tests/wpt/css-tests/geometry-1_dev/xhtml1/DOMRect-001.xht +++ b/tests/wpt/css-tests/geometry-1_dev/xhtml1/DOMRect-001.xht @@ -26,13 +26,16 @@ { x: 0, y: 0, width: 0, height: 0, top: 0, right: 0, bottom: 0, left: 0 }); },'testConstructor0'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1); }); + checkDOMRect(new DOMRect(1), + { x: 1, y: 0, width: 0, height: 0, top: 0, right: 1, bottom: 0, left: 1 }); },'testConstructor1'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1, 2); }); + checkDOMRect(new DOMRect(1, 2), + { x: 1, y: 2, width: 0, height: 0, top: 2, right: 1, bottom: 2, left: 1 }); },'testConstructor2'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1, 2, 3); }); + checkDOMRect(new DOMRect(1, 2, 3), + { x: 1, y: 2, width: 3, height: 0, top: 2, right: 4, bottom: 2, left: 1 }); },'testConstructor3'); test(function() { checkDOMRect(new DOMRect(1, 2, 3, 4), diff --git a/tests/wpt/css-tests/geometry-1_dev/xhtml1print/DOMRect-001.xht b/tests/wpt/css-tests/geometry-1_dev/xhtml1print/DOMRect-001.xht index 7bcde2e0282..aea651f270a 100644 --- a/tests/wpt/css-tests/geometry-1_dev/xhtml1print/DOMRect-001.xht +++ b/tests/wpt/css-tests/geometry-1_dev/xhtml1print/DOMRect-001.xht @@ -26,13 +26,16 @@ { x: 0, y: 0, width: 0, height: 0, top: 0, right: 0, bottom: 0, left: 0 }); },'testConstructor0'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1); }); + checkDOMRect(new DOMRect(1), + { x: 1, y: 0, width: 0, height: 0, top: 0, right: 1, bottom: 0, left: 1 }); },'testConstructor1'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1, 2); }); + checkDOMRect(new DOMRect(1, 2), + { x: 1, y: 2, width: 0, height: 0, top: 2, right: 1, bottom: 2, left: 1 }); },'testConstructor2'); test(function() { - assert_throws(new TypeError(), function() { new DOMRect(1, 2, 3); }); + checkDOMRect(new DOMRect(1, 2, 3), + { x: 1, y: 2, width: 3, height: 0, top: 2, right: 4, bottom: 2, left: 1 }); },'testConstructor3'); test(function() { checkDOMRect(new DOMRect(1, 2, 3, 4), diff --git a/tests/wpt/css-tests/source_rev b/tests/wpt/css-tests/source_rev index cdf5d54f14b..29b85b1b716 100644 --- a/tests/wpt/css-tests/source_rev +++ b/tests/wpt/css-tests/source_rev @@ -1 +1 @@ -fc8dab92f6e0d169ecae0bde2ef3a98dd27f6db2
\ No newline at end of file +e48df0d080e5df9bf62d2ef6b48db1196cd0378d
\ No newline at end of file diff --git a/tests/wpt/metadata-css/MANIFEST.json b/tests/wpt/metadata-css/MANIFEST.json index b4a36d99820..ab9913eca34 100644 --- a/tests/wpt/metadata-css/MANIFEST.json +++ b/tests/wpt/metadata-css/MANIFEST.json @@ -671387,7 +671387,7 @@ } ] }, - "rev": "2a5740eaf7fa99181681a89bc6789dbf5b839995", + "rev": "accc6c63beb15671e7e97f812cd11ba2ac34a447", "url_base": "/", "version": 2 }
\ No newline at end of file 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 index f4b30308f6c..d2c334283b1 100644 --- 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 @@ -42,3 +42,12 @@ [testSetAttributes] expected: FAIL + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + 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 index 2ed11f56b57..a1345a2bfbf 100644 --- 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 @@ -42,3 +42,12 @@ [testSetAttributes] expected: FAIL + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + 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 index 2ed11f56b57..a1345a2bfbf 100644 --- 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 @@ -42,3 +42,12 @@ [testSetAttributes] expected: FAIL + [testConstructor1] + expected: FAIL + + [testConstructor2] + expected: FAIL + + [testConstructor3] + expected: FAIL + |