mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 43dc4d2ac8f531153bdabfe45e6975a97e286862
This commit is contained in:
parent
c693a4a80b
commit
1599557991
105 changed files with 1034 additions and 323 deletions
|
@ -1,3 +1,10 @@
|
|||
import base64
|
||||
import six
|
||||
|
||||
def decodebytes(s):
|
||||
if six.PY3:
|
||||
return base64.decodebytes(six.ensure_binary(s))
|
||||
return base64.decodestring(s)
|
||||
|
||||
def main(req, res):
|
||||
return 404, [(b'Content-Type', b'image/png')], base64.decodestring(b"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAhSURBVDhPY3wro/KfgQLABKXJBqMGjBoAAqMGDLwBDAwAEsoCTFWunmQAAAAASUVORK5CYII=")
|
||||
return 404, [(b'Content-Type', b'image/png')], decodebytes(b"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAhSURBVDhPY3wro/KfgQLABKXJBqMGjBoAAqMGDLwBDAwAEsoCTFWunmQAAAAASUVORK5CYII=")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue