[atoms] Add a test for mixed type value for getAttribute
limitations under the License.
-->
<html>
+
<head>
<title>attribute_test.html</title>
<script src="test_bootstrap.js"></script>
goog.require('goog.events.EventType');
goog.require('goog.testing.jsunit');
</script>
+ <meta charset="UTF-8">
<script type="text/javascript">
function testCanFindNamedAttributes() {
var e = bot.locators.findElement({ id: 'cheddar' });
assertAttributeEquals(bot.dom.getAttribute(e, 'name'), e, 'NaMe');
}
+ function testAttributeDoesNotChangeTheTypeOfTheAttribute() {
+ var e = bot.locators.findElement({ id: 'aValue' });
+ assertAttributeEquals("4b273a33fbbd29013nN93dy4F1A~", e, "value");
+ }
+
function assertAttributeEquals(expected, elem, attr) {
assertEquals('Expected attribute "' + attr + '" to equal "' +
expected + '"', expected, bot.dom.getAttribute(elem, attr));
</script>
</head>
+
<body>
<div id="cheddar" name="cheese" class="tasty" unknown="lovely" empty="">Cheddar</div>
<input id="checky" type="checkbox" disabled readonly="readonly" checked="false" />
<input id="unchecky" type="checkbox" value="unchecky" />
</form>
+ <li id=aValue value="4b273a33fbbd29013nN93dy4F1A~" class="cur"></li>
</body>
+
</html>
