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

Side by Side Diff: Source/bindings/tests/idls/TestObject.idl

Issue 54903014: [EnforceRange] doesn't enforce range of a short (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Extend layout test Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary formstrArg, with or without 5 * Redistribution and use in source and binary formstrArg, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void methodWithNonCallbackArgAndCallbackArg(long nonCallback, TestCallbac k callback); 149 void methodWithNonCallbackArgAndCallbackArg(long nonCallback, TestCallbac k callback);
150 void methodWithCallbackAndOptionalArg(optional TestCallback callback); 150 void methodWithCallbackAndOptionalArg(optional TestCallback callback);
151 void methodWithNullableCallbackArg(TestCallback? callback); 151 void methodWithNullableCallbackArg(TestCallback? callback);
152 // static methods with Callback parameter 152 // static methods with Callback parameter
153 static void staticMethodWithCallbackAndOptionalArg(optional TestCallback callback); 153 static void staticMethodWithCallbackAndOptionalArg(optional TestCallback callback);
154 static void staticMethodWithCallbackArg(TestCallback callback); 154 static void staticMethodWithCallbackArg(TestCallback callback);
155 155
156 // 'EnforceRange' extended attribute 156 // 'EnforceRange' extended attribute
157 void methodWithEnforceRangeInt8([EnforceRange] byte value); 157 void methodWithEnforceRangeInt8([EnforceRange] byte value);
158 void methodWithEnforceRangeUInt8([EnforceRange] octet value); 158 void methodWithEnforceRangeUInt8([EnforceRange] octet value);
159 void methodWithEnforceRangeInt16([EnforceRange] short value);
160 void methodWithEnforceRangeUInt16([EnforceRange] unsigned short value);
159 void methodWithEnforceRangeInt32([EnforceRange] long value); 161 void methodWithEnforceRangeInt32([EnforceRange] long value);
160 void methodWithEnforceRangeUInt32([EnforceRange] unsigned long value); 162 void methodWithEnforceRangeUInt32([EnforceRange] unsigned long value);
161 void methodWithEnforceRangeInt64([EnforceRange] long long value); 163 void methodWithEnforceRangeInt64([EnforceRange] long long value);
162 void methodWithEnforceRangeUInt64([EnforceRange] unsigned long long value ); 164 void methodWithEnforceRangeUInt64([EnforceRange] unsigned long long value );
163 165
164 [EnforceRange] attribute byte enforcedRangeByteAttr; 166 [EnforceRange] attribute byte enforcedRangeByteAttr;
165 [EnforceRange] attribute octet enforcedRangeOctetAttr; 167 [EnforceRange] attribute octet enforcedRangeOctetAttr;
168 [EnforceRange] attribute short enforcedRangeShortAttr;
169 [EnforceRange] attribute unsigned short enforcedRangeUnsignedShortAttr;
166 [EnforceRange] attribute long enforcedRangeLongAttr; 170 [EnforceRange] attribute long enforcedRangeLongAttr;
167 [EnforceRange] attribute unsigned long enforcedRangeUnsignedLongAttr; 171 [EnforceRange] attribute unsigned long enforcedRangeUnsignedLongAttr;
168 [EnforceRange] attribute long long enforcedRangeLongLongAttr; 172 [EnforceRange] attribute long long enforcedRangeLongLongAttr;
169 [EnforceRange] attribute unsigned long long enforcedRangeUnsignedLongLongAtt r; 173 [EnforceRange] attribute unsigned long long enforcedRangeUnsignedLongLongAtt r;
170 174
171 // 'Conditional' extended attribute 175 // 'Conditional' extended attribute
172 [Conditional=Condition1] attribute long conditionalAttr1; 176 [Conditional=Condition1] attribute long conditionalAttr1;
173 [Conditional=Condition1&Condition2] attribute long conditionalAttr2; 177 [Conditional=Condition1&Condition2] attribute long conditionalAttr2;
174 [Conditional=Condition1|Condition2] attribute long conditionalAttr3; 178 [Conditional=Condition1|Condition2] attribute long conditionalAttr3;
175 179
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 304 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1;
301 305
302 // PutForwards 306 // PutForwards
303 [PutForwards=href] readonly attribute TestNode location; 307 [PutForwards=href] readonly attribute TestNode location;
304 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; 308 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException;
305 }; 309 };
306 310
307 // The following comment should not generate any code 311 // The following comment should not generate any code
308 // TestObject implements TestImplements; 312 // TestObject implements TestImplements;
309 313
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698