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

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

Issue 138483004: Improve test coverage of TreatNullAs=NullString and TreatUndefinedAs=NullString (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 attribute TestEnumType enumAttr; 47 attribute TestEnumType enumAttr;
48 readonly attribute TestEnumType readOnlyEnumAttr; 48 readonly attribute TestEnumType readOnlyEnumAttr;
49 attribute byte byteAttr; 49 attribute byte byteAttr;
50 attribute octet octetAttr; 50 attribute octet octetAttr;
51 attribute short shortAttr; 51 attribute short shortAttr;
52 attribute unsigned short unsignedShortAttr; 52 attribute unsigned short unsignedShortAttr;
53 attribute long longAttr; 53 attribute long longAttr;
54 attribute long long longLongAttr; 54 attribute long long longLongAttr;
55 attribute unsigned long long unsignedLongLongAttr; 55 attribute unsigned long long unsignedLongLongAttr;
56 attribute DOMString stringAttr; 56 attribute DOMString stringAttr;
57 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr ;
58 [TreatNullAs=NullString, TreatUndefinedAs=NullString] attribute DOMString tr eatNullAsNullStringTreatUndefinedAsNullStringStringAttr;
57 attribute EventHandler eventHandlerAttr; 59 attribute EventHandler eventHandlerAttr;
58 [MeasureAs=TestFeature] attribute TestObject testObjAttr; 60 [MeasureAs=TestFeature] attribute TestObject testObjAttr;
59 [ExposeJSAccessors] attribute DOMString attrWithJSGetterAndSetter; 61 [ExposeJSAccessors] attribute DOMString attrWithJSGetterAndSetter;
60 62
61 // WK_ucfirst, WK_lcfirst exceptional cases. 63 // WK_ucfirst, WK_lcfirst exceptional cases.
62 attribute TestObject XMLObjAttr; 64 attribute TestObject XMLObjAttr;
63 attribute boolean create; 65 attribute boolean create;
64 66
65 // Reflected DOM attributes 67 // Reflected DOM attributes
66 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedStringAttr; 68 [Reflect] attribute DOMString reflectedStringAttr;
69 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedTreatNullAsNu llStringStringAttr;
70 [Reflect, TreatNullAs=NullString, TreatUndefinedAs=NullString] attribute DOM String reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttr;
67 [Reflect] attribute long reflectedIntegralAttr; 71 [Reflect] attribute long reflectedIntegralAttr;
68 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr; 72 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr;
69 [Reflect] attribute boolean reflectedBooleanAttr; 73 [Reflect] attribute boolean reflectedBooleanAttr;
70 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedURLAttr; 74 [Reflect, URL] attribute DOMString reflectedURLAttr;
71 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin g reflectedStringAttr; 75 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedTreatNul lAsNullStringURLAttr;
76 [Reflect, TreatNullAs=NullString, TreatUndefinedAs=NullString, URL] attribut e DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttr;
77 [Reflect=customContentStringAttr] attribute DOMString reflectedCustomStringA ttr;
78 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin g reflectedTreatNullAsNullStringCustomStringAttr;
79 [Reflect=customContentStringAttr, TreatNullAs=NullString, TreatUndefinedAs=N ullString] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNul lStringCustomStringAttr;
72 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt tr; 80 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt tr;
73 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA ttr; 81 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA ttr;
74 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr ing reflectedCustomURLAttr; 82 [Reflect=customContentURLAttr, URL] attribute DOMString reflectedCustomURLAt tr;
83 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr ing reflectedTreatNullAsNullStringCustomURLAttr;
84 [Reflect=customContentURLAttr, TreatNullAs=NullString, TreatUndefinedAs=Null String, URL] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsN ullStringCustomURLAttr;
75 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut e; 85 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut e;
76 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl yAttribute; 86 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl yAttribute;
77 [Reflect=Other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT oOnlyOtherAttribute; 87 [Reflect=Other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT oOnlyOtherAttribute;
78 [Reflect, ReflectOnly="rsa" | "dsa", ReflectMissing="rsa"] attribute DOMStri ng limitedWithMissingDefaultAttribute; 88 [Reflect, ReflectOnly="rsa" | "dsa", ReflectMissing="rsa"] attribute DOMStri ng limitedWithMissingDefaultAttribute;
79 [Reflect, ReflectOnly="ltr" | "rtl" | "auto", ReflectMissing="auto", Reflect Invalid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute; 89 [Reflect, ReflectOnly="ltr" | "rtl" | "auto", ReflectMissing="auto", Reflect Invalid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute;
80 [Reflect, ReflectOnly="left" | "right", ReflectMissing="left", ReflectInvali d="left"] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute; 90 [Reflect, ReflectOnly="left" | "right", ReflectMissing="left", ReflectInvali d="left"] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute;
81 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ; 91 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ;
82 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute; 92 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute;
83 93
84 // TypedArray attribute 94 // TypedArray attribute
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 311 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1;
302 312
303 // PutForwards 313 // PutForwards
304 [PutForwards=href] readonly attribute TestNode location; 314 [PutForwards=href] readonly attribute TestNode location;
305 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; 315 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException;
306 }; 316 };
307 317
308 // The following comment should not generate any code 318 // The following comment should not generate any code
309 // TestObject implements TestImplements; 319 // TestObject implements TestImplements;
310 320
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698