mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
20
tests/content/test_window_setInterval.html
Normal file
20
tests/content/test_window_setInterval.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
var x = 0;
|
||||
var intervalID = setInterval(function() {
|
||||
x += 1;
|
||||
if (x == 2) {
|
||||
clearInterval(intervalID);
|
||||
setTimeout(function() {
|
||||
is(x, 2);
|
||||
finish();
|
||||
}, 300);
|
||||
}
|
||||
}, 10);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue