| Index: LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| diff --git a/LayoutTests/fast/dom/idl-dictionary-unittest.html b/LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| index d855f128c0fd279aaac7f1ec1d8225a1767d2b5f..897f0f719f1447828d4a88e12245f3d02fc42d77 100644
|
| --- a/LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| +++ b/LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| @@ -124,6 +124,10 @@
|
| doubleOrStringMember: null,
|
| });
|
| dict = dictionaryTest.get();
|
| + // This behavior doesn't match the spec. The spec says it should be "null"
|
| + // (of type string). This is an intentional mismatch; however, we might
|
| + // want to follow the spec at some time.
|
| + debug('This FAIL is intentional');
|
| shouldBeEqualToString('dict.doubleOrStringMember', 'null');
|
| dictionaryTest.set({
|
| doubleOrStringMember: undefined,
|
| @@ -142,9 +146,7 @@
|
| });
|
| dict = dictionaryTest.get();
|
| shouldBeUndefined('dict.longMember');
|
| - // ToNumber(null) results in 0.
|
| - shouldBe('dict.longMemberWithDefault', '0');
|
| - // Passing undefined shouldn't invoke any conversion.
|
| + shouldBe('dict.longMemberWithDefault', '42');
|
| shouldBeUndefined('dict.longOrNullMember');
|
| // Nullable and its default value is null
|
| shouldBeNull('dict.longOrNullMemberWithDefault');
|
|
|