Skip to content

Commit

Permalink
Use 'new TypeError()' for assert_throws
Browse files Browse the repository at this point in the history
  • Loading branch information
Chong Zhang committed Feb 25, 2016
1 parent 755dbbe commit ad60668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions touch-events/touch-touchevent-constructor.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<div id="target0"></div>
<script>
test(function() {
assert_throws({name: 'TypeError'}, function() {new Touch();}, "Touch constructor requires initialize dictionary");
assert_throws({name: 'TypeError'}, function() {new Touch({});}, "Touch constructor requires identifier and target");
assert_throws(new TypeError(), function() {new Touch();}, "Touch constructor requires initialize dictionary");
assert_throws(new TypeError(), function() {new Touch({});}, "Touch constructor requires identifier and target");
}, "Create a Touch object with insufficient properties");

test(function() {
Expand Down

0 comments on commit ad60668

Please sign in to comment.