Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidZ committed Nov 19, 2018
1 parent 0c9db14 commit 465df5e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions infrastructure/testdriver/actions/pause.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>TestDriver actions: event order</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>

<script>
async_test(t => {
let t0 = performance.now();
let actions = new test_driver.Actions()
.addTick(2000)
.send()
.then(t.step_func_done(() => assert_greater_than(performance.now() - t0, 2000)));
})
</script>

0 comments on commit 465df5e

Please sign in to comment.