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 4422ae1d37635f400e348112e5da7c10eab582cf..954be2d6f76341325efcb98da19417ae6027b17f 100644 |
--- a/LayoutTests/fast/dom/idl-dictionary-unittest.html |
+++ b/LayoutTests/fast/dom/idl-dictionary-unittest.html |
@@ -128,6 +128,17 @@ if (window.internals && internals.dictionaryTest) { |
shouldThrow("dictionaryTest.set('string')"); |
debug(''); |
+ debug('Test for [Clamp] and [EnforceRange] member'); |
+ dictionaryTest.set({ |
+ longMember: 2147483648, |
+ longMemberWithClamp: 2147483648 |
+ }); |
+ dict = dictionaryTest.get(); |
+ shouldBe('dict.longMember', '-2147483648'); |
+ shouldBe('dict.longMemberWithClamp', '2147483647'); |
+ shouldThrow('dictionaryTest.set({ longMemberWithEnforceRange: 2147483648 })'); |
+ debug(''); |
+ |
debug('Test for derived dictionary'); |
dictionaryTest.setDerived({}); |
derived = dictionaryTest.getDerived(); |