Skip to content

Commit

Permalink
auto merge of #617 : kmcallister/servo/test-html, r=jdm
Browse files Browse the repository at this point in the history
I wanted this for testing incremental layout, but it's also useful to illustrate a bug I just found.
  • Loading branch information
bors-servo committed Jul 24, 2013
2 parents fe91f6e + 350c0a6 commit 1d3c2b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/html/color-change-text.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<style>
.red { color: red; }
.blue { color: blue; }
</style>
<script src="color-change-text.js"></script>
</head>
<body>
<div id="change" class="red">Hello, World!</div>
</body>
</html>
3 changes: 3 additions & 0 deletions src/test/html/color-change-text.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
window.setTimeout(function () {
document.getElementsByTagName('div')[0].setAttribute('class', 'blue');
}, 1000);

0 comments on commit 1d3c2b7

Please sign in to comment.