| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src='../../../resources/testharness.js'></script> | 2 <script src='../../../resources/testharness.js'></script> |
| 3 <script src='../../../resources/testharnessreport.js'></script> | 3 <script src='../../../resources/testharnessreport.js'></script> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 #box { | 5 #box { |
| 6 width: 300px; | 6 width: 300px; |
| 7 height: 100px; | 7 height: 100px; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 <div id="box" ></div> | 10 <div id="box" ></div> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 if (window.chrome && chrome.gpuBenchmarking) { | 34 if (window.chrome && chrome.gpuBenchmarking) { |
| 35 chrome.gpuBenchmarking.tap(x, y, function() { | 35 chrome.gpuBenchmarking.tap(x, y, function() { |
| 36 assert_true(receivedTap); | 36 assert_true(receivedTap); |
| 37 testTap.done(); | 37 testTap.done(); |
| 38 }); | 38 }); |
| 39 } | 39 } |
| 40 }); | 40 }); |
| 41 | 41 |
| 42 }, 'Test that chrome.gpuBenchmarking.tap always taps on the expected position no
matter what the screen scale factor is.'); | 42 }, 'Test that chrome.gpuBenchmarking.tap always taps on the expected position no
matter what the screen scale factor is.'); |
| 43 | 43 |
| 44 </script> | 44 test(function(t) { |
| 45 if (window.chrome && chrome.gpuBenchmarking) { |
| 46 var exception; |
| 47 try { |
| 48 chrome.gpuBenchmarking.tap(-1, -1, t.unreached_func('Listener should
not fire')); |
| 49 } catch(e) { |
| 50 exception = e; |
| 51 } |
| 52 assert_not_equals(exception, undefined); |
| 53 } |
| 54 }, 'Test that chrome.gpuBenchmarking.tap throws an exception on invalid input va
lues.'); |
| 55 |
| 56 </script> |
| OLD | NEW |