Chromium Code Reviews| Index: LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html |
| diff --git a/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html b/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html |
| index bb8cb7f5c931beeac274f9cf916b0beffd9e350a..8a7adefc4ea8b0ea20fba9eca434a7c511df35b1 100644 |
| --- a/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html |
| +++ b/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html |
| @@ -26,24 +26,22 @@ if (!window.AutocompleteErrorEvent) { |
| shouldBe("new AutocompleteErrorEvent('eventType', { cancelable: true }).cancelable", "true"); |
| // reason is passed. |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 'doremi' }).reason", "doremi"); |
| + shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 'cancel' }).reason", "cancel"); |
| shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: '' }).reason", ""); |
| + shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 'disabled' }).reason", "disabled"); |
| + shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 'invalid' }).reason", "invalid"); |
| shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: undefined }).reason", ""); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: null }).reason", "null"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: false }).reason", "false"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: true }).reason", "true"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 12345 }).reason", "12345"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 18446744073709551615 }).reason", "18446744073709552000"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: NaN }).reason", "NaN"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: [] }).reason", ""); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: [1, 2, 3] }).reason", "1,2,3"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: {doremi: 12345} }).reason", "[object Object]"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: {valueOf: function () { return 'doremi'; } } }).reason", "[object Object]"); |
| + shouldThrow("new AutocompleteErrorEvent('eventType', { reason: 'doremi' }).reason"); |
|
philipj_slow
2015/06/16 07:35:48
Please remove the trailing ".reason" as it is the
shiva.jm
2015/06/16 09:04:47
Done.
|
| + shouldThrow("new AutocompleteErrorEvent('eventType', { reason: null }).reason"); |
| + shouldThrow("new AutocompleteErrorEvent('eventType', { reason: false }).reason"); |
| + shouldThrow("new AutocompleteErrorEvent('eventType', { reason: true }).reason"); |
| + shouldThrow("new AutocompleteErrorEvent('eventType', { reason: 12345 }).reason"); |
| + shouldThrow("new AutocompleteErrorEvent('eventType', { reason: NaN }).reason"); |
| // All initializers are passed. |
| - shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'doremi' }).bubbles", "true"); |
| - shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'doremi' }).cancelable", "true"); |
| - shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'doremi' }).reason", "doremi"); |
| + shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: '' }).bubbles", "true"); |
| + shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'cancel' }).cancelable", "true"); |
| + shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'disabled' }).reason", "disabled"); |
| } |
| </script> |