repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
events
/
touch
/
resources
/
create-touch-event.js
blob
2f59df3c4c7e016460a2d50cd28cf4edabf8ed87
1
description
=
"This tests whether the DOM can create TouchEvents."
;
2
3
debug
(
description
);
4
5
var
event
=
null
;
6
7
try
8
{
9
event
=
document
.
createEvent
(
"TouchEvent"
);
10
shouldBeNonNull
(
"event"
);
11
}
12
catch
(
e
)
13
{
14
testFailed
(
"An exception was thrown: "
+
e
.
message
);
15
}