Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html b/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html |
| index f983d4cf8dcd3b0f18f4767bddf0d466318c9f35..0bcba685feb59baaa57df7ff4e2f035a4713b0a1 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html |
| +++ b/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html |
| @@ -145,5 +145,19 @@ if (window.internals) { |
| shouldBeEqualToString('unionTypesTest.doubleOrStringOrStringSequenceNullableArg([])', 'sequence: []'); |
| shouldBeEqualToString('unionTypesTest.doubleOrStringOrStringSequenceNullableArg(["a", 3.14])', 'sequence: [a, 3.14]'); |
| shouldBeEqualToString('unionTypesTest.doubleOrStringOrStringSequenceNullableArg(new Array(3))', 'sequence: [undefined, undefined, undefined]'); |
| + debug(''); |
| + |
| + debug('Tests for distingushing sequence<T> and dictionary'); |
| + // An object is converted to dictionary. |
| + shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg({})', 'InternalDictionary'); |
| + // null and undefined are also converted to dictionary. |
| + shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg(null)', 'InternalDictionary'); |
| + shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg(undefined)', 'InternalDictionary'); |
| + shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg(["a", "b", "c"])', 'sequence<DOMString>'); |
| } |
| </script> |
| + |
|
bashi
2016/05/20 06:44:16
I'll remove blank lines.
|
| + |
| + |
| + |
| + |