Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: LayoutTests/fast/forms/input-stepup-stepdown.html

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/input-stepup-stepdown.html
diff --git a/LayoutTests/fast/forms/input-stepup-stepdown.html b/LayoutTests/fast/forms/input-stepup-stepdown.html
index b261f4e4c0f15180e2f4a0b68587823187fc170f..2a9ed272427dfa0de8a21c7841aa753e5c5fde50 100644
--- a/LayoutTests/fast/forms/input-stepup-stepdown.html
+++ b/LayoutTests/fast/forms/input-stepup-stepdown.html
@@ -10,14 +10,14 @@
description('Check stepUp() and stepDown() bahevior for unsupported types.');
var input = document.createElement('input');
-var invalidStateErr = '"Error: InvalidStateError: DOM Exception 11"';
+var invalidStateErr = '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."';
debug('Unsupported type');
input.type = 'text';
-shouldThrow('input.step = "3"; input.min = ""; input.max = ""; input.value = "2"; input.stepDown()', '"Error: InvalidStateError: DOM Exception 11"');
-shouldThrow('input.stepDown(0)', '"Error: InvalidStateError: DOM Exception 11"');
-shouldThrow('input.stepUp()', '"Error: InvalidStateError: DOM Exception 11"');
-shouldThrow('input.stepUp(0)', '"Error: InvalidStateError: DOM Exception 11"');
+shouldThrow('input.step = "3"; input.min = ""; input.max = ""; input.value = "2"; input.stepDown()', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
+shouldThrow('input.stepDown(0)', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
+shouldThrow('input.stepUp()', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
+shouldThrow('input.stepUp(0)', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
</script>
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
« no previous file with comments | « LayoutTests/fast/forms/input-maxlength-expected.txt ('k') | LayoutTests/fast/forms/input-stepup-stepdown-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698