Index: LayoutTests/fast/js/webidl-type-mapping-expected.txt |
diff --git a/LayoutTests/fast/js/webidl-type-mapping-expected.txt b/LayoutTests/fast/js/webidl-type-mapping-expected.txt |
index aec0ac1c7b61d8f2984ce5010db9d7b3357d4dc0..0132b53938dbec76c554f07fb6d5370dc37f1a12 100644 |
--- a/LayoutTests/fast/js/webidl-type-mapping-expected.txt |
+++ b/LayoutTests/fast/js/webidl-type-mapping-expected.txt |
@@ -546,6 +546,212 @@ PASS converter.testEnforceRangeUnsignedLongLong is 0 |
PASS converter.testEnforceRangeUnsignedLongLong = undefined threw exception TypeError: Type error. |
PASS converter.testEnforceRangeUnsignedLongLong = {valueOf:function(){throw new Error('custom');}} threw exception Error: custom. |
+PASS 'testByte' in converter is true |
+PASS typeof converter.testByte === 'number' is true |
+converter.testByte = 0 |
+PASS converter.testByte is 0 |
+converter.testByte = -1 |
+PASS converter.testByte is -1 |
+converter.testByte = 1 |
+PASS converter.testByte is 1 |
+converter.testByte = 0x7F |
+PASS converter.testByte is 0x7F |
+converter.testByte = 0x80 |
+PASS converter.testByte is -0x80 |
+converter.testByte = -0x7F |
+PASS converter.testByte is -0x7F |
+converter.testByte = -0x80 |
+PASS converter.testByte is -0x80 |
+converter.testByte = -0x81 |
+PASS converter.testByte is 0x7F |
+converter.testByte = 0x1234 |
+PASS converter.testByte is 0x34 |
+converter.testByte = Number.MIN_VALUE |
+PASS converter.testByte is 0 |
+converter.testByte = -Number.MIN_VALUE |
+PASS converter.testByte is 0 |
+converter.testByte = Number.MAX_VALUE |
+PASS converter.testByte is 0 |
+converter.testByte = -Number.MAX_VALUE |
+PASS converter.testByte is 0 |
+converter.testByte = 1.99 |
+PASS converter.testByte is 1 |
+converter.testByte = -1.99 |
+PASS converter.testByte is -1 |
+converter.testByte = 4660.99 |
+PASS converter.testByte is 0x34 |
+converter.testByte = Infinity |
+PASS converter.testByte is 0 |
+converter.testByte = -Infinity |
+PASS converter.testByte is 0 |
+converter.testByte = NaN |
+PASS converter.testByte is 0 |
+converter.testByte = false |
+PASS converter.testByte is 0 |
+converter.testByte = true |
+PASS converter.testByte is 1 |
+converter.testByte = '' |
+PASS converter.testByte is 0 |
+converter.testByte = '1' |
+PASS converter.testByte is 1 |
+converter.testByte = 'abc' |
+PASS converter.testByte is 0 |
+converter.testByte = null |
+PASS converter.testByte is 0 |
+converter.testByte = undefined |
+PASS converter.testByte is 0 |
+PASS converter.testByte = {valueOf:function(){throw new Error('custom');}} threw exception Error: custom. |
+ |
+PASS 'testEnforceRangeByte' in converter is true |
+PASS typeof converter.testEnforceRangeByte === 'number' is true |
+converter.testEnforceRangeByte = 0 |
+PASS converter.testEnforceRangeByte is 0 |
+converter.testEnforceRangeByte = -1 |
+PASS converter.testEnforceRangeByte is -1 |
+converter.testEnforceRangeByte = 1 |
+PASS converter.testEnforceRangeByte is 1 |
+converter.testEnforceRangeByte = 0x7F |
+PASS converter.testEnforceRangeByte is 0x7F |
+PASS converter.testEnforceRangeByte = 0x80 threw exception TypeError: Type error. |
+converter.testEnforceRangeByte = -0x7F |
+PASS converter.testEnforceRangeByte is -0x7F |
+converter.testEnforceRangeByte = -0x80 |
+PASS converter.testEnforceRangeByte is -0x80 |
+PASS converter.testEnforceRangeByte = -0x81 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeByte = 0x1234 threw exception TypeError: Type error. |
+converter.testEnforceRangeByte = Number.MIN_VALUE |
+PASS converter.testEnforceRangeByte is 0 |
+converter.testEnforceRangeByte = -Number.MIN_VALUE |
+PASS converter.testEnforceRangeByte is 0 |
+PASS converter.testEnforceRangeByte = Number.MAX_VALUE threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeByte = -Number.MAX_VALUE threw exception TypeError: Type error. |
+converter.testEnforceRangeByte = 1.99 |
+PASS converter.testEnforceRangeByte is 1 |
+converter.testEnforceRangeByte = -1.99 |
+PASS converter.testEnforceRangeByte is -1 |
+PASS converter.testEnforceRangeByte = 4660.99 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeByte = Infinity threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeByte = -Infinity threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeByte = NaN threw exception TypeError: Type error. |
+converter.testEnforceRangeByte = false |
+PASS converter.testEnforceRangeByte is 0 |
+converter.testEnforceRangeByte = true |
+PASS converter.testEnforceRangeByte is 1 |
+converter.testEnforceRangeByte = '' |
+PASS converter.testEnforceRangeByte is 0 |
+converter.testEnforceRangeByte = '1' |
+PASS converter.testEnforceRangeByte is 1 |
+PASS converter.testEnforceRangeByte = 'abc' threw exception TypeError: Type error. |
+converter.testEnforceRangeByte = null |
+PASS converter.testEnforceRangeByte is 0 |
+PASS converter.testEnforceRangeByte = undefined threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeByte = {valueOf:function(){throw new Error('custom');}} threw exception Error: custom. |
+ |
+PASS 'testOctet' in converter is true |
+PASS typeof converter.testOctet === 'number' is true |
+converter.testOctet = 0 |
+PASS converter.testOctet is 0 |
+converter.testOctet = -1 |
+PASS converter.testOctet is 0xFF |
+converter.testOctet = 1 |
+PASS converter.testOctet is 1 |
+converter.testOctet = 0x7F |
+PASS converter.testOctet is 0x7F |
+converter.testOctet = 0x80 |
+PASS converter.testOctet is 0x80 |
+converter.testOctet = 0xFF |
+PASS converter.testOctet is 0xFF |
+converter.testOctet = 0x100 |
+PASS converter.testOctet is 0 |
+converter.testOctet = 0x101 |
+PASS converter.testOctet is 1 |
+converter.testOctet = -0x80 |
+PASS converter.testOctet is 0x80 |
+converter.testOctet = -0x81 |
+PASS converter.testOctet is 0x7F |
+converter.testOctet = 0x1234 |
+PASS converter.testOctet is 0x34 |
+converter.testOctet = Number.MAX_VALUE |
+PASS converter.testOctet is 0 |
+converter.testOctet = Number.MIN_VALUE |
+PASS converter.testOctet is 0 |
+converter.testOctet = -Number.MAX_VALUE |
+PASS converter.testOctet is 0 |
+converter.testOctet = -Number.MIN_VALUE |
+PASS converter.testOctet is 0 |
+converter.testOctet = 1.99 |
+PASS converter.testOctet is 1 |
+converter.testOctet = -1.99 |
+PASS converter.testOctet is 0xFF |
+converter.testOctet = 4660.99 |
+PASS converter.testOctet is 0x34 |
+converter.testOctet = Infinity |
+PASS converter.testOctet is 0 |
+converter.testOctet = -Infinity |
+PASS converter.testOctet is 0 |
+converter.testOctet = NaN |
+PASS converter.testOctet is 0 |
+converter.testOctet = false |
+PASS converter.testOctet is 0 |
+converter.testOctet = true |
+PASS converter.testOctet is 1 |
+converter.testOctet = '' |
+PASS converter.testOctet is 0 |
+converter.testOctet = '1' |
+PASS converter.testOctet is 1 |
+converter.testOctet = 'abc' |
+PASS converter.testOctet is 0 |
+converter.testOctet = null |
+PASS converter.testOctet is 0 |
+converter.testOctet = undefined |
+PASS converter.testOctet is 0 |
+PASS converter.testOctet = {valueOf:function(){throw new Error('custom');}} threw exception Error: custom. |
+ |
+PASS 'testEnforceRangeOctet' in converter is true |
+PASS typeof converter.testEnforceRangeOctet === 'number' is true |
+converter.testEnforceRangeOctet = 0 |
+PASS converter.testEnforceRangeOctet is 0 |
+PASS converter.testEnforceRangeOctet = -1 threw exception TypeError: Type error. |
+converter.testEnforceRangeOctet = 1 |
+PASS converter.testEnforceRangeOctet is 1 |
+converter.testEnforceRangeOctet = 0x7F |
+PASS converter.testEnforceRangeOctet is 0x7F |
+converter.testEnforceRangeOctet = 0x80 |
+PASS converter.testEnforceRangeOctet is 0x80 |
+converter.testEnforceRangeOctet = 0xFF |
+PASS converter.testEnforceRangeOctet is 0xFF |
+PASS converter.testEnforceRangeOctet = 0x100 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = 0x101 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = -0x80 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = -0x81 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = 0x1234 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = Number.MAX_VALUE threw exception TypeError: Type error. |
+converter.testEnforceRangeOctet = Number.MIN_VALUE |
+PASS converter.testEnforceRangeOctet is 0 |
+PASS converter.testEnforceRangeOctet = -Number.MAX_VALUE threw exception TypeError: Type error. |
+converter.testEnforceRangeOctet = -Number.MIN_VALUE |
+PASS converter.testEnforceRangeOctet is 0 |
+converter.testEnforceRangeOctet = 1.99 |
+PASS converter.testEnforceRangeOctet is 1 |
+PASS converter.testEnforceRangeOctet = -1.99 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = 4660.99 threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = Infinity threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = -Infinity threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = NaN threw exception TypeError: Type error. |
+converter.testEnforceRangeOctet = false |
+PASS converter.testEnforceRangeOctet is 0 |
+converter.testEnforceRangeOctet = true |
+PASS converter.testEnforceRangeOctet is 1 |
+converter.testEnforceRangeOctet = '' |
+PASS converter.testEnforceRangeOctet is 0 |
+converter.testEnforceRangeOctet = '1' |
+PASS converter.testEnforceRangeOctet is 1 |
+PASS converter.testEnforceRangeOctet = 'abc' threw exception TypeError: Type error. |
+converter.testEnforceRangeOctet = null |
+PASS converter.testEnforceRangeOctet is 0 |
+PASS converter.testEnforceRangeOctet = undefined threw exception TypeError: Type error. |
+PASS converter.testEnforceRangeOctet = {valueOf:function(){throw new Error('custom');}} threw exception Error: custom. |
+ |
PASS successfullyParsed is true |
TEST COMPLETE |