From 86bab080c6374c80d70ac502d51cd483df857d29 Mon Sep 17 00:00:00 2001 From: vincentliu Date: Tue, 14 Feb 2017 11:41:17 +0800 Subject: [PATCH] Bug 1336351 - Add web platform test. r=smaug --- testing/web-platform/meta/MANIFEST.json | 10 ++++++ .../the-canvas-element/toBlob.null.html | 33 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-canvas-element/toBlob.null.html diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 840aaf55ceb6..c7ce38293a24 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -92055,6 +92055,12 @@ {} ] ], + "html/semantics/embedded-content/the-canvas-element/toBlob.null.html": [ + [ + "/html/semantics/embedded-content/the-canvas-element/toBlob.null.html", + {} + ] + ], "html/semantics/embedded-content/the-canvas-element/toBlob.png.html": [ [ "/html/semantics/embedded-content/the-canvas-element/toBlob.png.html", @@ -174480,6 +174486,10 @@ "d7e7c17c306c8e7dd60e2199255b20d6bc871f6e", "testharness" ], + "html/semantics/embedded-content/the-canvas-element/toBlob.null.html": [ + "79b4a278f0e35646cfdffeebf8f0523e2772bc9b", + "testharness" + ], "html/semantics/embedded-content/the-canvas-element/toBlob.png.html": [ "bfd114af336758effac1c29d202abd0775ab5b2e", "testharness" diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-canvas-element/toBlob.null.html b/testing/web-platform/tests/html/semantics/embedded-content/the-canvas-element/toBlob.null.html new file mode 100644 index 000000000000..b66153c3eed0 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-canvas-element/toBlob.null.html @@ -0,0 +1,33 @@ + + +Canvas test: toBlob.null + + + + + + +

toBlob.null

+

toBlob with zero dimension returns a null Blob

+ +

Actual output:

+

FAIL (fallback content)

+ + + \ No newline at end of file