On x86 compilers without fastcall, simulate it when invoking traces and un-simulate...
[wine-gecko.git] / content / media / video / test / test_constants.html
blobacb2e460a0c0864512994b1801253b7322f8337a
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 Adapted from:
5 http://simon.html5.org/test/html/dom/interfaces/HTMLElement/HTMLMediaElement/const-unsigned-short/001.htm
6 -->
7 <head>
8 <title>Media test: constants</title>
9 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
10 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
12 </head>
13 <body>
14 <video><source></video><audio></audio>
15 <pre id="test">
16 <script class="testbody" type="text/javascript">
17 is(HTMLElement.EMPTY, undefined);
18 is(HTMLElement.LOADING, undefined);
19 is(HTMLElement.LOADED_METADATA, undefined);
20 is(HTMLElement.LOADED_FIRST_FRAME, undefined);
21 is(HTMLElement.LOADED, undefined);
22 is(HTMLElement.DATA_UNAVAILABLE, undefined);
23 is(HTMLElement.CAN_SHOW_CURRENT_FRAME, undefined);
24 is(HTMLElement.CAN_PLAY, undefined);
25 is(HTMLElement.CAN_PLAY_THROUGH, undefined);
26 is(HTMLMediaElement.EMPTY, 0);
27 is(HTMLMediaElement.LOADING, 1);
28 is(HTMLMediaElement.LOADED_METADATA, 2);
29 is(HTMLMediaElement.LOADED_FIRST_FRAME, 3);
30 is(HTMLMediaElement.LOADED, 4);
31 is(HTMLMediaElement.DATA_UNAVAILABLE, 0);
32 is(HTMLMediaElement.CAN_SHOW_CURRENT_FRAME, 1);
33 is(HTMLMediaElement.CAN_PLAY, 2);
34 is(HTMLMediaElement.CAN_PLAY_THROUGH, 3);
35 is(HTMLVideoElement.EMPTY, undefined);
36 is(HTMLVideoElement.LOADING, undefined);
37 is(HTMLVideoElement.LOADED_METADATA, undefined);
38 is(HTMLVideoElement.LOADED_FIRST_FRAME, undefined);
39 is(HTMLVideoElement.LOADED, undefined);
40 is(HTMLVideoElement.DATA_UNAVAILABLE, undefined);
41 is(HTMLVideoElement.CAN_SHOW_CURRENT_FRAME, undefined);
42 is(HTMLVideoElement.CAN_PLAY, undefined);
43 is(HTMLVideoElement.CAN_PLAY_THROUGH, undefined);
44 is(HTMLAudioElement.EMPTY, undefined);
45 is(HTMLAudioElement.LOADING, undefined);
46 is(HTMLAudioElement.LOADED_METADATA, undefined);
47 is(HTMLAudioElement.LOADED_FIRST_FRAME, undefined);
48 is(HTMLAudioElement.LOADED, undefined);
49 is(HTMLAudioElement.DATA_UNAVAILABLE, undefined);
50 is(HTMLAudioElement.CAN_SHOW_CURRENT_FRAME, undefined);
51 is(HTMLAudioElement.CAN_PLAY, undefined);
52 is(HTMLAudioElement.CAN_PLAY_THROUGH, undefined);
53 is(HTMLSourceElement.EMPTY, undefined);
54 is(HTMLSourceElement.LOADING, undefined);
55 is(HTMLSourceElement.LOADED_METADATA, undefined);
56 is(HTMLSourceElement.LOADED_FIRST_FRAME, undefined);
57 is(HTMLSourceElement.LOADED, undefined);
58 is(HTMLSourceElement.DATA_UNAVAILABLE, undefined);
59 is(HTMLSourceElement.CAN_SHOW_CURRENT_FRAME, undefined);
60 is(HTMLSourceElement.CAN_PLAY, undefined);
61 is(HTMLSourceElement.CAN_PLAY_THROUGH, undefined);
62 is(document.body.EMPTY, undefined);
63 is(document.body.LOADING, undefined);
64 is(document.body.LOADED_METADATA, undefined);
65 is(document.body.LOADED_FIRST_FRAME, undefined);
66 is(document.body.LOADED, undefined);
67 is(document.body.DATA_UNAVAILABLE, undefined);
68 is(document.body.CAN_SHOW_CURRENT_FRAME, undefined);
69 is(document.body.CAN_PLAY, undefined);
70 is(document.body.CAN_PLAY_THROUGH, undefined);
71 is(document.getElementsByTagName("video")[0].EMPTY, 0);
72 is(document.getElementsByTagName("video")[0].LOADING, 1);
73 is(document.getElementsByTagName("video")[0].LOADED_METADATA, 2);
74 is(document.getElementsByTagName("video")[0].LOADED_FIRST_FRAME, 3);
75 is(document.getElementsByTagName("video")[0].LOADED, 4);
76 is(document.getElementsByTagName("video")[0].DATA_UNAVAILABLE, 0);
77 is(document.getElementsByTagName("video")[0].CAN_SHOW_CURRENT_FRAME, 1);
78 is(document.getElementsByTagName("video")[0].CAN_PLAY, 2);
79 is(document.getElementsByTagName("video")[0].CAN_PLAY_THROUGH, 3);
80 is(document.getElementsByTagName("audio")[0].EMPTY, 0);
81 is(document.getElementsByTagName("audio")[0].LOADING, 1);
82 is(document.getElementsByTagName("audio")[0].LOADED_METADATA, 2);
83 is(document.getElementsByTagName("audio")[0].LOADED_FIRST_FRAME, 3);
84 is(document.getElementsByTagName("audio")[0].LOADED, 4);
85 is(document.getElementsByTagName("audio")[0].DATA_UNAVAILABLE, 0);
86 is(document.getElementsByTagName("audio")[0].CAN_SHOW_CURRENT_FRAME, 1);
87 is(document.getElementsByTagName("audio")[0].CAN_PLAY, 2);
88 is(document.getElementsByTagName("audio")[0].CAN_PLAY_THROUGH, 3);
89 is(document.getElementsByTagName("source")[0].EMPTY, undefined);
90 is(document.getElementsByTagName("source")[0].LOADING, undefined);
91 is(document.getElementsByTagName("source")[0].LOADED_METADATA, undefined);
92 is(document.getElementsByTagName("source")[0].LOADED_FIRST_FRAME, undefined);
93 is(document.getElementsByTagName("source")[0].LOADED, undefined);
94 is(document.getElementsByTagName("source")[0].DATA_UNAVAILABLE, undefined);
95 is(document.getElementsByTagName("source")[0].CAN_SHOW_CURRENT_FRAME, undefined);
96 is(document.getElementsByTagName("source")[0].CAN_PLAY, undefined);
97 is(document.getElementsByTagName("source")[0].CAN_PLAY_THROUGH, undefined);
98 is(HTMLElement.prototype.EMPTY, undefined);
99 is(HTMLElement.prototype.LOADING, undefined);
100 is(HTMLElement.prototype.LOADED_METADATA, undefined);
101 is(HTMLElement.prototype.LOADED_FIRST_FRAME, undefined);
102 is(HTMLElement.prototype.LOADED, undefined);
103 is(HTMLElement.prototype.DATA_UNAVAILABLE, undefined);
104 is(HTMLElement.prototype.CAN_SHOW_CURRENT_FRAME, undefined);
105 is(HTMLElement.prototype.CAN_PLAY, undefined);
106 is(HTMLElement.prototype.CAN_PLAY_THROUGH, undefined);
107 is(HTMLVideoElement.prototype.EMPTY, 0);
108 is(HTMLVideoElement.prototype.LOADING, 1);
109 is(HTMLVideoElement.prototype.LOADED_METADATA, 2);
110 is(HTMLVideoElement.prototype.LOADED_FIRST_FRAME, 3);
111 is(HTMLVideoElement.prototype.LOADED, 4);
112 is(HTMLVideoElement.prototype.DATA_UNAVAILABLE, 0);
113 is(HTMLVideoElement.prototype.CAN_SHOW_CURRENT_FRAME, 1);
114 is(HTMLVideoElement.prototype.CAN_PLAY, 2);
115 is(HTMLVideoElement.prototype.CAN_PLAY_THROUGH, 3);
116 is(HTMLAudioElement.prototype.EMPTY, 0);
117 is(HTMLAudioElement.prototype.LOADING, 1);
118 is(HTMLAudioElement.prototype.LOADED_METADATA, 2);
119 is(HTMLAudioElement.prototype.LOADED_FIRST_FRAME, 3);
120 is(HTMLAudioElement.prototype.LOADED, 4);
121 is(HTMLAudioElement.prototype.DATA_UNAVAILABLE, 0);
122 is(HTMLAudioElement.prototype.CAN_SHOW_CURRENT_FRAME, 1);
123 is(HTMLAudioElement.prototype.CAN_PLAY, 2);
124 is(HTMLAudioElement.prototype.CAN_PLAY_THROUGH, 3);
125 is(HTMLSourceElement.prototype.EMPTY, undefined);
126 is(HTMLSourceElement.prototype.LOADING, undefined);
127 is(HTMLSourceElement.prototype.LOADED_METADATA, undefined);
128 is(HTMLSourceElement.prototype.LOADED_FIRST_FRAME, undefined);
129 is(HTMLSourceElement.prototype.LOADED, undefined);
130 is(HTMLSourceElement.prototype.DATA_UNAVAILABLE, undefined);
131 is(HTMLSourceElement.prototype.CAN_SHOW_CURRENT_FRAME, undefined);
132 is(HTMLSourceElement.prototype.CAN_PLAY, undefined);
133 is(HTMLSourceElement.prototype.CAN_PLAY_THROUGH, undefined);
134 </script>
135 </pre>
136 </body>
137 </html>