diff options
author | Ben Murdoch <benm@google.com> | 2010-10-17 16:26:08 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-10-18 15:33:09 +0100 |
commit | ae2f706e781550da00a8440e44f20bbb7bd24c30 (patch) | |
tree | 3e8776287410e234333d5e934ce244256155eca3 /LayoutTests | |
parent | 38739d1775cff08915cd14d0c77356b21f4f77b7 (diff) | |
download | external_webkit-ae2f706e781550da00a8440e44f20bbb7bd24c30.zip external_webkit-ae2f706e781550da00a8440e44f20bbb7bd24c30.tar.gz external_webkit-ae2f706e781550da00a8440e44f20bbb7bd24c30.tar.bz2 |
Fix Webkit review comments for document.createTouch
See WebKit bug https://bugs.webkit.org/show_bug.cgi?id=47676
for details.
Change-Id: I232445c78d59ed3d13c9bcd86b9fa9590ffae552
Diffstat (limited to 'LayoutTests')
-rw-r--r-- | LayoutTests/fast/events/touch/document-create-touch-expected.txt | 7 | ||||
-rw-r--r-- | LayoutTests/fast/events/touch/script-tests/document-create-touch.js | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/LayoutTests/fast/events/touch/document-create-touch-expected.txt b/LayoutTests/fast/events/touch/document-create-touch-expected.txt index c1c647f..2bf33cb 100644 --- a/LayoutTests/fast/events/touch/document-create-touch-expected.txt +++ b/LayoutTests/fast/events/touch/document-create-touch-expected.txt @@ -18,6 +18,13 @@ PASS emptyTouch.pageX is 0 PASS emptyTouch.pageY is 0 PASS emptyTouch.screenX is 0 PASS emptyTouch.screenY is 0 +PASS badParamsTouch is non-null. +PASS badParamsTouch.target is null +PASS badParamsTouch.identifier is 0 +PASS badParamsTouch.pageX is 0 +PASS badParamsTouch.pageY is 0 +PASS badParamsTouch.screenX is 0 +PASS badParamsTouch.screenY is 104 PASS successfullyParsed is true TEST COMPLETE diff --git a/LayoutTests/fast/events/touch/script-tests/document-create-touch.js b/LayoutTests/fast/events/touch/script-tests/document-create-touch.js index dd383ac..c51c7e3 100644 --- a/LayoutTests/fast/events/touch/script-tests/document-create-touch.js +++ b/LayoutTests/fast/events/touch/script-tests/document-create-touch.js @@ -27,5 +27,15 @@ shouldBe("emptyTouch.pageY", "0"); shouldBe("emptyTouch.screenX", "0"); shouldBe("emptyTouch.screenY", "0"); +// Try invoking with incorrect parameter types. +var badParamsTouch = document.createTouch(function(x) { return x; }, 12, 'a', 'b', 'c', function(x) { return x; }, 104); +shouldBeNonNull("badParamsTouch"); +shouldBeNull("badParamsTouch.target"); +shouldBe("badParamsTouch.identifier", "0"); +shouldBe("badParamsTouch.pageX", "0"); +shouldBe("badParamsTouch.pageY", "0"); +shouldBe("badParamsTouch.screenX", "0"); +shouldBe("badParamsTouch.screenY", "104"); + successfullyParsed = true; isSuccessfullyParsed(); |