mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update CSS tests to revision accc6c63beb15671e7e97f812cd11ba2ac34a447
This commit is contained in:
parent
9094297029
commit
346fb4cb35
10 changed files with 50 additions and 14 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue