Skip to content

Commit

Permalink
Add an HTML file where JavaScript changes text color
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
kmcallister committed Jul 24, 2013
1 parent fe91f6e commit 350c0a6
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);

8 comments on commit 350c0a6

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from jdm
at kmcallister@350c0a6

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kmcallister/servo/test-html = 350c0a6 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kmcallister/servo/test-html = 350c0a6 merged ok, testing candidate = a1c02de

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No active merge of candidate 350c0a6 found, likely manual push to master

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kmcallister/servo/test-html = 350c0a6 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kmcallister/servo/test-html = 350c0a6 merged ok, testing candidate = b219262

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = b219262

Please sign in to comment.