mirror of
https://github.com/servo/servo.git
synced 2025-08-21 13:25:34 +01:00
Update web-platform-tests to revision 4f397167b4ed552a02201c92d363cfaecfe2c7f0
This commit is contained in:
parent
73b5bf201f
commit
84b40513c3
182 changed files with 4779 additions and 1937 deletions
|
@ -44,31 +44,31 @@
|
|||
},'testConstructor4');
|
||||
|
||||
checkDOMQuad(
|
||||
function() { return new DOMQuad(new DOMRect(10, 20, 100, 200)); },
|
||||
function() { return DOMQuad.fromRect(new DOMRect(10, 20, 100, 200)); },
|
||||
{ p1: { x: 10, y: 20, z: 0, w: 1 },
|
||||
p2: { x: 110, y: 20, z: 0, w: 1 },
|
||||
p3: { x: 110, y: 220, z: 0, w: 1 },
|
||||
p4: { x: 10, y: 220, z: 0, w: 1 },
|
||||
bounds: { x: 10, y: 20, width: 100, height: 200 } },
|
||||
'testConstructor5');
|
||||
'fromRect() method on DOMQuad');
|
||||
|
||||
checkDOMQuad(
|
||||
function() { return new DOMQuad(new DOMRect(10, 20, -100, -200)) },
|
||||
function() { return DOMQuad.fromRect(new DOMRect(10, 20, -100, -200)) },
|
||||
{ p1: { x: 10, y: 20, z: 0, w: 1 },
|
||||
p2: { x: -90, y: 20, z: 0, w: 1 },
|
||||
p3: { x: -90, y: -180, z: 0, w: 1 },
|
||||
p4: { x: 10, y: -180, z: 0, w: 1 },
|
||||
bounds: { x: -90, y: -180, width: 100, height: 200 } },
|
||||
'testConstructor6');
|
||||
'fromRect() method on DOMQuad with negatives');
|
||||
|
||||
checkDOMQuad(
|
||||
function() { return new DOMQuad(new DOMRect(-Infinity, -Infinity, Infinity, Infinity)) },
|
||||
function() { return DOMQuad.fromRect(new DOMRect(-Infinity, -Infinity, Infinity, Infinity)) },
|
||||
{ p1: { x: -Infinity, y: -Infinity, z: 0, w: 1 },
|
||||
p2: { x: NaN, y: -Infinity, z: 0, w: 1 },
|
||||
p3: { x: NaN, y: NaN, z: 0, w: 1 },
|
||||
p4: { x: -Infinity, y: NaN, z: 0, w: 1 },
|
||||
bounds: { x: -Infinity, y: -Infinity, width: NaN, height: NaN } },
|
||||
'testConstructor7');
|
||||
'fromRect() method on DOMQuad with Infinity');
|
||||
|
||||
checkDOMQuad(function() { return new DOMQuad(new DOMRect()); }, initial, 'testConstructor8');
|
||||
|
||||
|
@ -120,15 +120,9 @@
|
|||
p2: { x: 2, y: 0, z: 0, w: 1 },
|
||||
p3: { x: 2, y: 0, z: 0, w: 1 },
|
||||
p4: { x: 2, y: 0, z: 0, w: 1 },
|
||||
bounds: { x: 2, y: 0, width: 0, height: 0 } },
|
||||
bounds: { x: 0, y: 0, width: 0, height: 0 } },
|
||||
'p1Top4Attributes1');
|
||||
|
||||
checkDOMQuad(function() {
|
||||
var q = new DOMQuad({}, {}, {}, {});
|
||||
q.bounds = new DOMRect(10, 10, 100, 100);
|
||||
return q;
|
||||
}, initial, 'boundsAttribute0');
|
||||
|
||||
function checkDOMQuad(createQuad, exp, name) {
|
||||
test(function() {
|
||||
var q = createQuad();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue