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

Unified Diff: Source/bindings/tests/idls/TestObject.idl

Issue 139293004: Teach the IDL compiler about TreatNullAs=EmptyString (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test results 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/idls/TestObject.idl
diff --git a/Source/bindings/tests/idls/TestObject.idl b/Source/bindings/tests/idls/TestObject.idl
index 83fabe536a6aea5925f01f05cbe2027175db22e9..5f9e44356ceddb39d9d16a17982ec7a8d0625a87 100644
--- a/Source/bindings/tests/idls/TestObject.idl
+++ b/Source/bindings/tests/idls/TestObject.idl
@@ -54,6 +54,7 @@ callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2);
attribute long long longLongAttr;
attribute unsigned long long unsignedLongLongAttr;
attribute DOMString stringAttr;
+ [TreatNullAs=EmptyString] attribute DOMString treatNullAsEmptyStringStringAttr;
[TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr;
[TreatNullAs=NullString, TreatUndefinedAs=NullString] attribute DOMString treatNullAsNullStringTreatUndefinedAsNullStringStringAttr;
attribute EventHandler eventHandlerAttr;
@@ -66,20 +67,24 @@ callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2);
// Reflected DOM attributes
[Reflect] attribute DOMString reflectedStringAttr;
+ [Reflect, TreatNullAs=EmptyString] attribute DOMString reflectedTreatNullAsEmptyStringStringAttr;
[Reflect, TreatNullAs=NullString] attribute DOMString reflectedTreatNullAsNullStringStringAttr;
[Reflect, TreatNullAs=NullString, TreatUndefinedAs=NullString] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttr;
[Reflect] attribute long reflectedIntegralAttr;
[Reflect] attribute unsigned long reflectedUnsignedIntegralAttr;
[Reflect] attribute boolean reflectedBooleanAttr;
[Reflect, URL] attribute DOMString reflectedURLAttr;
+ [Reflect, TreatNullAs=EmptyString, URL] attribute DOMString reflectedTreatNullAsEmptyStringURLAttr;
[Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedTreatNullAsNullStringURLAttr;
[Reflect, TreatNullAs=NullString, TreatUndefinedAs=NullString, URL] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttr;
[Reflect=customContentStringAttr] attribute DOMString reflectedCustomStringAttr;
+ [Reflect=customContentStringAttr, TreatNullAs=EmptyString] attribute DOMString reflectedTreatNullAsEmptyStringCustomStringAttr;
[Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMString reflectedTreatNullAsNullStringCustomStringAttr;
[Reflect=customContentStringAttr, TreatNullAs=NullString, TreatUndefinedAs=NullString] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomStringAttr;
[Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAttr;
[Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanAttr;
[Reflect=customContentURLAttr, URL] attribute DOMString reflectedCustomURLAttr;
+ [Reflect=customContentURLAttr, TreatNullAs=EmptyString, URL] attribute DOMString reflectedTreatNullAsEmptyStringCustomURLAttr;
[Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMString reflectedTreatNullAsNullStringCustomURLAttr;
[Reflect=customContentURLAttr, TreatNullAs=NullString, TreatUndefinedAs=NullString, URL] attribute DOMString reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAttr;
[Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribute;

Powered by Google App Engine
This is Rietveld 408576698