mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -12,8 +12,8 @@
|
|||
|
||||
|
||||
<p class="output">Actual output:</p>
|
||||
<canvas id="c" class="output" width="
|
||||
100" height="
|
||||
<canvas id="c" class="output" width="
|
||||
100" height="
|
||||
100"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
<p class="output expectedtext">Expected output:<p><img src="size.attributes.parse.whitespace.png" class="output expected" id="expected" alt="">
|
||||
<ul id="d"></ul>
|
||||
|
|
|
@ -19,13 +19,13 @@
|
|||
var t = async_test("Parsing of non-negative integers in setAttribute");
|
||||
_addTest(function(canvas, ctx) {
|
||||
|
||||
canvas.setAttribute('width', '\r\n\t\x0c100');
|
||||
canvas.setAttribute('height', '\r\n\t\x0c100');
|
||||
canvas.setAttribute('width', '\n\t\x0c100');
|
||||
canvas.setAttribute('height', '\n\t\x0c100');
|
||||
_assertSame(canvas.width, 100, "canvas.width", "100");
|
||||
_assertSame(canvas.height, 100, "canvas.height", "100");
|
||||
_assertSame(window.getComputedStyle(canvas, null).getPropertyValue("width"), "100px", "window.getComputedStyle(canvas, null).getPropertyValue(\"width\")", "\"100px\"");
|
||||
_assertSame(canvas.getAttribute('width'), '\r\n\t\x0c100', "canvas.getAttribute('width')", "'\\r\\n\\t\\x0c100'");
|
||||
_assertSame(canvas.getAttribute('height'), '\r\n\t\x0c100', "canvas.getAttribute('height')", "'\\r\\n\\t\\x0c100'");
|
||||
_assertSame(canvas.getAttribute('width'), '\n\t\x0c100', "canvas.getAttribute('width')", "'\\n\\t\\x0c100'");
|
||||
_assertSame(canvas.getAttribute('height'), '\n\t\x0c100', "canvas.getAttribute('height')", "'\\n\\t\\x0c100'");
|
||||
|
||||
|
||||
});
|
||||
|
|
|
@ -18,13 +18,16 @@
|
|||
<script>
|
||||
var t = async_test("toDataURL works before any context has been got");
|
||||
_addTest(function(canvas, ctx) {
|
||||
var no_context_data = canvas.toDataURL();
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.rect(0, 0, 100, 50);
|
||||
ctx.fillStyle = "rgba(0, 0, 0, 0)";
|
||||
ctx.fill();
|
||||
var data = canvas.toDataURL();
|
||||
assert_equals(no_context_data, data);
|
||||
|
||||
var no_context_data = canvas.toDataURL();
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.rect(0, 0, 100, 50);
|
||||
ctx.fillStyle = "rgba(0, 0, 0, 0)";
|
||||
ctx.fill();
|
||||
var data = canvas.toDataURL();
|
||||
assert_equals(no_context_data, data);
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 242 B |
Loading…
Add table
Add a link
Reference in a new issue