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

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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698