Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: test/com/opera/core/systems/IdleTest.java
- Loading branch information
Showing
7 changed files
with
234 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Timeout ecmascript fixture</title> | ||
</head> | ||
<body> | ||
<h1 id="out">Waiting</h1> | ||
<p id="result"></p> | ||
|
||
<script type="text/javascript"> | ||
setTimeout(function() { | ||
document.getElementById("out").innerHTML = "done"; | ||
}, 1000); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Looping ecmascript fixture</title> | ||
</head> | ||
<body> | ||
<h1 id="out">looping</h1> | ||
<p id="result"></p> | ||
|
||
<script type="text/javascript"> | ||
// Sieve of Eratosthenes | ||
function sieve(N){ | ||
var n, p, primes=[], str=[]; | ||
for(n=2; n<N/2; n++){ | ||
if(primes[n]) { continue; } | ||
for(p=2*n; p<=N; p+=n){ primes[p]=true; } | ||
} | ||
for(n=2; n<=N; n++){ if(!primes[n]) str.push(n); } | ||
return str.join(', '); | ||
} | ||
|
||
document.getElementById("result").innerHTML = sieve(1000000); | ||
document.getElementById("out").innerHTML = "done"; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Timeout ecmascript fixture</title> | ||
</head> | ||
<body> | ||
<h1 id="out">Waiting</h1> | ||
<p id="result"></p> | ||
|
||
<script type="text/javascript"> | ||
var loops = 0; | ||
function loop() { | ||
loops++ | ||
if (loops > 2) { | ||
document.getElementById("out").innerHTML = "done"; | ||
} else { | ||
setTimeout(loop, 500); | ||
} | ||
} | ||
|
||
loop(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Timeout ecmascript fixture</title> | ||
</head> | ||
<body> | ||
<h1 id="out">Waiting</h1> | ||
<p id="result"></p> | ||
|
||
<script type="text/javascript"> | ||
setTimeout(function() { | ||
document.getElementById("out").innerHTML = "done"; | ||
}, 1000); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Meta tag refresh fixture</title> | ||
<meta http-equiv="refresh" content="1;url=../test.html" > | ||
</head> | ||
<body> | ||
<h1>Hello</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>CSS animation fixture. Should cause reflows.</title> | ||
<style type="text/css"> | ||
#box { | ||
float: left; | ||
background-color: #FCC; | ||
width: 100px; | ||
height: 100px; | ||
-o-transition-property: width background-color; | ||
-o-transition-duration: 2s; | ||
-o-transition-timing-function: linear; | ||
} | ||
|
||
#box:target { | ||
background-color: #CCF; | ||
width: 200px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="box">box</div> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis augue lacus, porttitor eget tristique vel, imperdiet nec sapien. Aenean et lectus in odio auctor auctor sed id nibh. Maecenas tempus orci nec lorem elementum nec tincidunt urna laoreet. Phasellus felis quam, condimentum eu semper ac, laoreet at tellus. Donec nisl augue, consectetur tristique mattis non, dapibus in orci. Sed a purus orci. Pellentesque gravida, quam vitae rutrum dapibus, elit elit venenatis felis, feugiat suscipit velit turpis eu nulla. Nam sit amet orci eget sapien imperdiet molestie et sed velit. Etiam pretium venenatis erat, pulvinar tempor augue congue a. Morbi ultrices vulputate lorem molestie ullamcorper. Integer bibendum augue nisi, id cursus elit. Praesent quis pellentesque ante. Pellentesque feugiat, ipsum quis faucibus feugiat, justo est egestas sapien, ac tempor ipsum nibh vitae justo. Curabitur non metus eget risus convallis suscipit eget quis quam. Aenean pellentesque aliquam imperdiet. Sed scelerisque, quam sit amet molestie laoreet, mi lectus adipiscing purus, vulputate auctor augue urna nec mi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris fringilla, elit pellentesque eleifend dictum, dui enim vehicula massa, rutrum gravida lorem nunc pulvinar risus. Donec luctus lectus id nibh suscipit iaculis.</p> | ||
</body> | ||
</html> |