mirror of
https://github.com/servo/servo.git
synced 2025-08-27 16:18:21 +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
7
tests/wpt/web-platform-tests/2dcontext/tools/build.sh
Executable file
7
tests/wpt/web-platform-tests/2dcontext/tools/build.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
set -ex
|
||||
|
||||
cd "${0%/*}"
|
||||
virtualenv -p python .virtualenv
|
||||
.virtualenv/bin/pip install pyyaml cairocffi
|
||||
.virtualenv/bin/python gentest.py
|
|
@ -45,7 +45,10 @@ import sys
|
|||
import xml.dom.minidom
|
||||
from xml.dom.minidom import Node
|
||||
|
||||
import cairo
|
||||
try:
|
||||
import cairocffi as cairo
|
||||
except ImportError:
|
||||
import cairo
|
||||
|
||||
try:
|
||||
import syck as yaml # compatible and lots faster
|
||||
|
|
|
@ -41,5 +41,6 @@ fallback: "../html/semantics/embedded-content/the-ca
|
|||
initial: "../html/semantics/embedded-content/the-canvas-element/"
|
||||
security: "../html/semantics/embedded-content/the-canvas-element/"
|
||||
size: "../html/semantics/embedded-content/the-canvas-element/"
|
||||
toBlob: "../html/semantics/embedded-content/the-canvas-element/"
|
||||
toDataURL: "../html/semantics/embedded-content/the-canvas-element/"
|
||||
type: "../html/semantics/embedded-content/the-canvas-element/"
|
||||
|
|
|
@ -566,9 +566,13 @@
|
|||
testing:
|
||||
- toDataURL.noarguments
|
||||
code: |
|
||||
var canvas2 = document.createElement('canvas');
|
||||
var data = canvas2.toDataURL();
|
||||
@assert data =~ /^data:image\/png[;,]/;
|
||||
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);
|
||||
|
||||
- name: toDataURL.zerosize
|
||||
desc: toDataURL on zero-size canvas returns 'data:,'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue