init-events-expected.txt 17.2 KB
Newer Older
1 2 3 4 5 6 7 8
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
CONSOLE MESSAGE: event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
darin@apple.com's avatar
darin@apple.com committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
This tests the init functions for all the event DOM classes that have them.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS testInitEvent('', '"a", false, false').type is 'a'
PASS testInitEvent('', 'null, false, false').type is 'null'
PASS testInitEvent('', '"a", false, false').bubbles is false
PASS testInitEvent('', '"a", true, false').bubbles is true
PASS testInitEvent('', '"a", false, false').cancelable is false
PASS testInitEvent('', '"a", false, true').cancelable is true
PASS testInitEvent('Keyboard', '"a", false, false, window, "b", 1001, false, false, false, false, false').type is 'a'
PASS testInitEvent('Keyboard', 'null, false, false, window, "b", 1001, false, false, false, false, false').type is 'null'
PASS testInitEvent('Keyboard', '"a", false, false, window, "b", 1001, false, false, false, false, false').bubbles is false
PASS testInitEvent('Keyboard', '"a", true, false, window, "b", 1001, false, false, false, false, false').bubbles is true
PASS testInitEvent('Keyboard', '"a", false, false, window, "b", 1001, false, false, false, false, false').cancelable is false
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').cancelable is true
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').view is window
PASS testInitEvent('Keyboard', '"a", false, true, null, "b", 1001, false, false, false, false, false').view is null
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').keyIdentifier is 'b'
PASS testInitEvent('Keyboard', '"a", false, true, window, null, 1001, false, false, false, false, false').keyIdentifier is 'null'
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').keyLocation is 1001
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').ctrlKey is false
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, true, false, false, false, false').ctrlKey is true
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').altKey is false
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, true, false, false, false').altKey is true
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').shiftKey is false
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, true, false, false').shiftKey is true
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').metaKey is false
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, true, false').metaKey is true
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').altGraphKey is false
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, true').altGraphKey is true
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, true').detail is 0
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').keyCode is 0
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').charCode is 0
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').layerX is 0
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').layerY is 0
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').pageX is 0
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').pageY is 0
PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').which is 0
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').type is 'a'
PASS testInitEvent('Message', 'null, false, false, "b", "c", "d", window, null').type is 'null'
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').bubbles is false
PASS testInitEvent('Message', '"a", true, false, "b", "c", "d", window, null').bubbles is true
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').cancelable is false
PASS testInitEvent('Message', '"a", false, true, "b", "c", "d", window, null').cancelable is true
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').data is 'b'
56
PASS testInitEvent('Message', '"a", false, false, null, "c", "d", window, null').data is null
darin@apple.com's avatar
darin@apple.com committed
57 58 59 60 61 62
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').origin is 'c'
PASS testInitEvent('Message', '"a", false, false, "b", null, "d", window, null').origin is 'null'
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').lastEventId is 'd'
PASS testInitEvent('Message', '"a", false, false, "b", "c", null, window, null').lastEventId is 'null'
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').source is window
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", null, null').source is null
63 64
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", null, channelArray').ports[0] is channel.port1
PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", null, channelArray').ports[1] is channel.port2
darin@apple.com's avatar
darin@apple.com committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').type is 'a'
PASS testInitEvent('Mouse', 'null, false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').type is 'null'
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').bubbles is false
PASS testInitEvent('Mouse', '"a", true, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').bubbles is true
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').cancelable is false
PASS testInitEvent('Mouse', '"a", false, true, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').cancelable is true
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').view is window
PASS testInitEvent('Mouse', '"a", false, false, null, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').view is null
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').detail is 1001
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').screenX is 1002
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').screenY is 1003
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').clientX is 1004
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').clientY is 1005
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').ctrlKey is false
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, true, false, false, false, 1006, null').ctrlKey is true
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').altKey is false
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, true, false, false, 1006, null').altKey is true
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').shiftKey is false
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, true, false, 1006, null').shiftKey is true
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').metaKey is false
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, true, 1006, null').metaKey is true
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').button is 1006
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').relatedTarget is null
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, document').relatedTarget is document
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').offsetX is 1004
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').offsetY is 1005
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').x is 1004
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').y is 1005
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').fromElement is null
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, document').fromElement is document
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').toElement is null
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').dataTransfer is null
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').keyCode is 0
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').charCode is 0
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').layerX is 1004
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').layerY is 1005
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').pageX is 1004
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').pageY is 1005
PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').which is 1007
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').type is 'a'
PASS testInitEvent('Mutation', 'null, false, false, null, "b", "c", "d", 1001').type is 'null'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').bubbles is false
PASS testInitEvent('Mutation', '"a", true, false, null, "b", "c", "d", 1001').bubbles is true
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').cancelable is false
PASS testInitEvent('Mutation', '"a", false, true, null, "b", "c", "d", 1001').cancelable is true
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').relatedNode is null
PASS testInitEvent('Mutation', '"a", false, false, document, "b", "c", "d", 1001').relatedNode is document
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').prevValue is 'b'
PASS testInitEvent('Mutation', '"a", false, false, null, null, "c", "d", 1001').prevValue is 'null'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').newValue is 'c'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", null, "d", 1001').newValue is 'null'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').attrName is 'd'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", null, 1001').attrName is 'null'
PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').attrChange is 1001
119 120 121 122 123 124 125 126 127 128 129 130
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').type is 'a'
PASS testInitEvent('Storage', 'null, false, false, "b", "c", "d", "e"').type is 'null'
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').bubbles is false
PASS testInitEvent('Storage', '"a", true, false, "b", "c", "d", "e"').bubbles is true
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').cancelable is false
PASS testInitEvent('Storage', '"a", false, true, "b", "c", "d", "e"').cancelable is true
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').key is 'b'
PASS testInitEvent('Storage', '"a", false, false, null, "c", "d", "e"').key is 'null'
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').oldValue is 'c'
PASS testInitEvent('Storage', '"a", false, false, "b", null, "d", "e"').oldValue is null
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').newValue is 'd'
PASS testInitEvent('Storage', '"a", false, false, "b", "c", null, "e"').newValue is null
131 132
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').url is 'e'
PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", null').url is 'null'
darin@apple.com's avatar
darin@apple.com committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
PASS testInitEvent('Text', '"a", false, false, window, "b"').type is 'a'
PASS testInitEvent('Text', 'null, false, false, window, "b"').type is 'null'
PASS testInitEvent('Text', '"a", false, false, window, "b"').bubbles is false
PASS testInitEvent('Text', '"a", true, false, window, "b"').bubbles is true
PASS testInitEvent('Text', '"a", false, false, window, "b"').cancelable is false
PASS testInitEvent('Text', '"a", false, true, window, "b"').cancelable is true
PASS testInitEvent('Text', '"a", false, false, window, "b"').view is window
PASS testInitEvent('Text', '"a", false, false, null, "b"').view is null
PASS testInitEvent('Text', '"a", false, false, window, "b"').data is 'b'
PASS testInitEvent('Text', '"a", false, false, window, null').data is 'null'
PASS testInitEvent('Text', '"a", false, false, window, "b"').detail is 0
PASS testInitEvent('Text', '"a", false, false, window, "b"').keyCode is 0
PASS testInitEvent('Text', '"a", false, false, window, "b"').charCode is 0
PASS testInitEvent('Text', '"a", false, false, window, "b"').layerX is 0
PASS testInitEvent('Text', '"a", false, false, window, "b"').layerY is 0
PASS testInitEvent('Text', '"a", false, false, window, "b"').pageX is 0
PASS testInitEvent('Text', '"a", false, false, window, "b"').pageY is 0
PASS testInitEvent('Text', '"a", false, false, window, "b"').which is 0
PASS testInitEvent('UI', '"a", false, false, window, 1001').type is 'a'
PASS testInitEvent('UI', 'null, false, false, window, 1001').type is 'null'
PASS testInitEvent('UI', '"a", false, false, window, 1001').bubbles is false
PASS testInitEvent('UI', '"a", true, false, window, 1001').bubbles is true
PASS testInitEvent('UI', '"a", false, false, window, 1001').cancelable is false
PASS testInitEvent('UI', '"a", false, true, window, 1001').cancelable is true
PASS testInitEvent('UI', '"a", false, false, window, 1001').view is window
PASS testInitEvent('UI', '"a", false, false, null, 1001').view is null
PASS testInitEvent('UI', '"a", false, false, window, 1001').detail is 1001
PASS testInitEvent('UI', '"a", false, false, window, 1001').keyCode is 0
PASS testInitEvent('UI', '"a", false, false, window, 1001').charCode is 0
PASS testInitEvent('UI', '"a", false, false, window, 1001').layerX is 0
PASS testInitEvent('UI', '"a", false, false, window, 1001').layerY is 0
PASS testInitEvent('UI', '"a", false, false, window, 1001').pageX is 0
PASS testInitEvent('UI', '"a", false, false, window, 1001').pageY is 0
PASS testInitEvent('UI', '"a", false, false, window, 1001').which is 0
PASS successfullyParsed is true

TEST COMPLETE