Skip to content

Commit

Permalink
Add a test for getElementsByName
Browse files Browse the repository at this point in the history
  • Loading branch information
sonwow committed Jul 25, 2013
1 parent f8f9d20 commit 65d2ea2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/html/test_bindings.html
Expand Up @@ -3,9 +3,9 @@
<script src="test_bindings.js"></script>
</head>
<body>
<div id="first">fffff<br><br><br><br>fffffffffffffffff</div>
<div id="first" name="test">fffff<br><br><br><br>fffffffffffffffff</div>
<div id="second">ggg</div>
<span id="third">hhhhhhhh</span>
<span id="third" name="test">hhhhhhhh</span>
<div id="fourth">iiiiiiiiiiiiiiiiiii</div>
</body>
</html>
8 changes: 8 additions & 0 deletions src/test/html/test_bindings.js
Expand Up @@ -43,6 +43,14 @@ window.alert(tags[0].getClientRects());
window.alert(tags[1]);
window.alert(tags[2]);
window.alert(tags[3]);
let tags = document.getElementsByName("test");
window.alert(tags);
window.alert(tags.length);
window.alert(tags[0]);
window.alert(tags[0].tagName);
window.alert(tags[1]);
window.alert(tags[1].tagName);
window.alert(tags[2]);

window.alert("DOMParser:");
window.alert(DOMParser);
Expand Down

5 comments on commit 65d2ea2

@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 sonwow@65d2ea2

@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 sonwow/servo/bindings = 65d2ea2 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.

sonwow/servo/bindings = 65d2ea2 merged ok, testing candidate = 07267c6

@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 = 07267c6

Please sign in to comment.