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

Unified Diff: LayoutTests/fast/dom/idl-dictionary-unittest.html

Issue 724733002: Support for [Clamp] and [EnforceRange] to IDL dictionary. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/dom/idl-dictionary-unittest.html
diff --git a/LayoutTests/fast/dom/idl-dictionary-unittest.html b/LayoutTests/fast/dom/idl-dictionary-unittest.html
index 2de66ef7c1a83fa04ad28437aba71dcdf141f48c..474e13debfb9a06ba537a314c7b45549628c89a2 100644
--- a/LayoutTests/fast/dom/idl-dictionary-unittest.html
+++ b/LayoutTests/fast/dom/idl-dictionary-unittest.html
@@ -127,5 +127,15 @@ if (window.internals && internals.dictionaryTest) {
shouldThrow("dictionaryTest.set(42)");
shouldThrow("dictionaryTest.set('string')");
debug('');
+
+ debug('Test for [Clamp] member');
+ dictionaryTest.set({
+ longMember: 2147483648,
+ longMemberWithClamp: 2147483648
+ });
+ dict = dictionaryTest.get();
+ shouldBe('dict.longMember', '-2147483648');
+ shouldBe('dict.longMemberWithClamp', '2147483647');
+ debug('');
}
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt » ('j') | Source/bindings/templates/dictionary_v8.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698