Skip to content

Commit 4f828d2

Browse files
committed
fix spellcheck test, default isn't the same for all browsers
1 parent e4b10e1 commit 4f828d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

javascript/webdriver/test/atoms/element_test.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@
210210

211211
function testShouldReturnTrueForSpellcheckUndefined() {
212212
var el = document.getElementById('normal');
213-
assertEquals('true', webdriver.atoms.element.getAttribute(el, 'spellcheck'));
213+
var defaultSpellcheck = 'false';
214+
if (goog.userAgent.WEBKIT) {
215+
defaultSpellcheck = 'true';
216+
}
217+
assertEquals(defaultSpellcheck, webdriver.atoms.element.getAttribute(el, 'spellcheck'));
214218
}
215219

216220
var newLine = bot.userAgent.IE_DOC_PRE9 ? '\r\n' : '\n';

0 commit comments

Comments
 (0)