| Index: third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html b/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
|
| index 834942ac115fe8aeb72478c4c0f08c9faab690a4..4de60faa2c316c4d9dc7b77f92a907b328d30f6d 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
|
| @@ -41,4 +41,16 @@ testTap.step(function () {
|
|
|
| }, 'Test that chrome.gpuBenchmarking.tap always taps on the expected position no matter what the screen scale factor is.');
|
|
|
| -</script>
|
| +test(function(t) {
|
| + if (window.chrome && chrome.gpuBenchmarking) {
|
| + var exception;
|
| + try {
|
| + chrome.gpuBenchmarking.tap(-1, -1, t.unreached_func('Listener should not fire'));
|
| + } catch(e) {
|
| + exception = e;
|
| + }
|
| + assert_not_equals(exception, undefined);
|
| + }
|
| +}, 'Test that chrome.gpuBenchmarking.tap throws an exception on invalid input values.');
|
| +
|
| +</script>
|
|
|