Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args-expected.txt

Issue 1488763002: Start an empty interface OffScreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better -1 handling and more invalid args test cases Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..31996d9da6d08d6244429ac063e1fb9f252ab306
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args-expected.txt
@@ -0,0 +1,21 @@
+Tests that the OffScreenCanvas can handle invalid arguments
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS canvas1.width is setWidth-1
+PASS canvas1.height is setHeight-1
+PASS canvas1.width is 0
+PASS canvas1.height is 0
+PASS OffScreenCanvas(-1, -1) throws an exception as expected: TypeError: Failed to construct 'OffScreenCanvas': Value is outside the 'unsigned long' value range.
+PASS canvas3.width is 0
+PASS canvas3.height is 0
+PASS canvas3.width is setWidth-1
+PASS canvas3.height is setHeight-1
+PASS Setting width to -1 throws an exception as expected: TypeError: Failed to set the 'width' property on 'OffScreenCanvas': Value is outside the 'unsigned long' value range.
+PASS Setting width to an object throws an exception as expected: TypeError: Failed to set the 'width' property on 'OffScreenCanvas': Value is not of type 'unsigned long'.
+PASS OffScreenCanvas(object, object) throws an exception as expected: TypeError: Failed to construct 'OffScreenCanvas': Value is not of type 'unsigned long'.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698