diff options
author | jinho.bang@samsung.com <jinho.bang@samsung.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-05-22 01:14:34 +0000 |
---|---|---|
committer | jinho.bang@samsung.com <jinho.bang@samsung.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-05-22 01:14:34 +0000 |
commit | 806a09ed84eb473eb24f6984e69364fee644dbdb (patch) | |
tree | de317abdc5ba338398b3fadbd4163ce91056b9cd /third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js | |
parent | cd86d76c09d7763bbbde35a3e5252149bf78e261 (diff) | |
download | chromium_src-806a09ed84eb473eb24f6984e69364fee644dbdb.zip chromium_src-806a09ed84eb473eb24f6984e69364fee644dbdb.tar.gz chromium_src-806a09ed84eb473eb24f6984e69364fee644dbdb.tar.bz2 |
Add some layout tests about behavior on undefined and null.
According to WebIDL in Blink guideline[1], behavior on undefind and null
must be tested in layout tests.
[1] http://www.chromium.org/blink/webidl#TOC-undefined-and-null
Review URL: https://codereview.chromium.org/289283002
git-svn-id: svn://svn.chromium.org/blink/trunk@174500 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js index 84764b0..383b00d 100644 --- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js +++ b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js @@ -30,8 +30,9 @@ shouldBeFalse("ctx.isPointInStroke(path,NaN,122)"); shouldBeFalse("ctx.isPointInStroke(path,18,NaN)"); debug(""); -debug("Check null and invalid type"); +debug("Check invalid type"); shouldThrow("ctx.isPointInStroke(null,70,20)"); +shouldThrow("ctx.isPointInStroke(undefined,70,20)"); shouldThrow("ctx.isPointInStroke([],20,70)"); shouldThrow("ctx.isPointInStroke({},120,70)"); debug(""); |