Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / media / video / test / test_constants.html
blob61b0e4c5acf7ec92f3cab355c8d13ef4949df17c
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><source></audio>
15 <pre id="test">
16 <script class="testbody" type="text/javascript">
17 is(HTMLElement.NETWORK_EMPTY, undefined);
18 is(HTMLElement.NETWORK_IDLE, undefined);
19 is(HTMLElement.NETWORK_LOADING, undefined);
20 is(HTMLElement.NETWORK_LOADED, undefined);
21 is(HTMLElement.HAVE_NOTHING, undefined);
22 is(HTMLElement.HAVE_METADATA, undefined);
23 is(HTMLElement.HAVE_CURRENT_DATA, undefined);
24 is(HTMLElement.HAVE_FUTURE_DATA, undefined);
25 is(HTMLElement.HAVE_ENOUGH_DATA, undefined);
26 is(HTMLMediaElement.NETWORK_EMPTY, 0);
27 is(HTMLMediaElement.NETWORK_IDLE, 1);
28 is(HTMLMediaElement.NETWORK_LOADING, 2);
29 is(HTMLMediaElement.NETWORK_LOADED, 3);
30 is(HTMLMediaElement.HAVE_NOTHING, 0);
31 is(HTMLMediaElement.HAVE_METADATA, 1);
32 is(HTMLMediaElement.HAVE_CURRENT_DATA, 2);
33 is(HTMLMediaElement.HAVE_FUTURE_DATA, 3);
34 is(HTMLMediaElement.HAVE_ENOUGH_DATA, 4);
35 is(HTMLVideoElement.NETWORK_EMPTY, undefined);
36 is(HTMLVideoElement.NETWORK_IDLE, undefined);
37 is(HTMLVideoElement.NETWORK_LOADING, undefined);
38 is(HTMLVideoElement.NETWORK_LOADED, undefined);
39 is(HTMLVideoElement.HAVE_NOTHING, undefined);
40 is(HTMLVideoElement.HAVE_METADATA, undefined);
41 is(HTMLVideoElement.HAVE_CURRENT_DATA, undefined);
42 is(HTMLVideoElement.HAVE_FUTURE_DATA, undefined);
43 is(HTMLVideoElement.HAVE_ENOUGH_DATA, undefined);
44 is(HTMLAudioElement.NETWORK_EMPTY, undefined);
45 is(HTMLAudioElement.NETWORK_IDLE, undefined);
46 is(HTMLAudioElement.NETWORK_LOADING, undefined);
47 is(HTMLAudioElement.NETWORK_LOADED, undefined);
48 is(HTMLAudioElement.HAVE_NOTHING, undefined);
49 is(HTMLAudioElement.HAVE_METADATA, undefined);
50 is(HTMLAudioElement.HAVE_CURRENT_DATA, undefined);
51 is(HTMLAudioElement.HAVE_FUTURE_DATA, undefined);
52 is(HTMLAudioElement.HAVE_ENOUGH_DATA, undefined);
53 is(HTMLSourceElement.NETWORK_EMPTY, undefined);
54 is(HTMLSourceElement.NETWORK_IDLE, undefined);
55 is(HTMLSourceElement.NETWORK_LOADING, undefined);
56 is(HTMLSourceElement.NETWORK_LOADED, undefined);
57 is(HTMLSourceElement.HAVE_NOTHING, undefined);
58 is(HTMLSourceElement.HAVE_METADATA, undefined);
59 is(HTMLSourceElement.HAVE_CURRENT_DATA, undefined);
60 is(HTMLSourceElement.HAVE_FUTURE_DATA, undefined);
61 is(HTMLSourceElement.HAVE_ENOUGH_DATA, undefined);
62 is(document.body.NETWORK_EMPTY, undefined);
63 is(document.body.NETWORK_IDLE, undefined);
64 is(document.body.NETWORK_LOADING, undefined);
65 is(document.body.NETWORK_LOADED, undefined);
66 is(document.body.HAVE_NOTHING, undefined);
67 is(document.body.HAVE_METADATA, undefined);
68 is(document.body.HAVE_CURRENT_DATA, undefined);
69 is(document.body.HAVE_FUTURE_DATA, undefined);
70 is(document.body.HAVE_ENOUGH_DATA, undefined);
71 is(document.getElementsByTagName("video")[0].NETWORK_EMPTY, 0);
72 is(document.getElementsByTagName("video")[0].NETWORK_IDLE, 1);
73 is(document.getElementsByTagName("video")[0].NETWORK_LOADING, 2);
74 is(document.getElementsByTagName("video")[0].NETWORK_LOADED, 3);
75 is(document.getElementsByTagName("video")[0].HAVE_NOTHING, 0);
76 is(document.getElementsByTagName("video")[0].HAVE_METADATA, 1);
77 is(document.getElementsByTagName("video")[0].HAVE_CURRENT_DATA, 2);
78 is(document.getElementsByTagName("video")[0].HAVE_FUTURE_DATA, 3);
79 is(document.getElementsByTagName("video")[0].HAVE_ENOUGH_DATA, 4);
80 is(document.getElementsByTagName("audio")[0].NETWORK_EMPTY, 0);
81 is(document.getElementsByTagName("audio")[0].NETWORK_IDLE, 1);
82 is(document.getElementsByTagName("audio")[0].NETWORK_LOADING, 2);
83 is(document.getElementsByTagName("audio")[0].NETWORK_LOADED, 3);
84 is(document.getElementsByTagName("audio")[0].HAVE_NOTHING, 0);
85 is(document.getElementsByTagName("audio")[0].HAVE_METADATA, 1);
86 is(document.getElementsByTagName("audio")[0].HAVE_CURRENT_DATA, 2);
87 is(document.getElementsByTagName("audio")[0].HAVE_FUTURE_DATA, 3);
88 is(document.getElementsByTagName("audio")[0].HAVE_ENOUGH_DATA, 4);
89 is(document.getElementsByTagName("source")[0].NETWORK_EMPTY, undefined);
90 is(document.getElementsByTagName("source")[0].NETWORK_IDLE, undefined);
91 is(document.getElementsByTagName("source")[0].NETWORK_LOADING, undefined);
92 is(document.getElementsByTagName("source")[0].NETWORK_LOADED, undefined);
93 is(document.getElementsByTagName("source")[0].HAVE_NOTHING, undefined);
94 is(document.getElementsByTagName("source")[0].HAVE_METADATA, undefined);
95 is(document.getElementsByTagName("source")[0].HAVE_CURRENT_DATA, undefined);
96 is(document.getElementsByTagName("source")[0].HAVE_FUTURE_DATA, undefined);
97 is(document.getElementsByTagName("source")[0].HAVE_ENOUGH_DATA, undefined);
98 is(HTMLElement.prototype.NETWORK_EMPTY, undefined);
99 is(HTMLElement.prototype.NETWORK_IDLE, undefined);
100 is(HTMLElement.prototype.NETWORK_LOADING, undefined);
101 is(HTMLElement.prototype.NETWORK_LOADED, undefined);
102 is(HTMLElement.prototype.HAVE_NOTHING, undefined);
103 is(HTMLElement.prototype.HAVE_METADATA, undefined);
104 is(HTMLElement.prototype.HAVE_CURRENT_DATA, undefined);
105 is(HTMLElement.prototype.HAVE_FUTURE_DATA, undefined);
106 is(HTMLElement.prototype.HAVE_ENOUGH_DATA, undefined);
107 todo_is(HTMLMediaElement.prototype.NETWORK_EMPTY, 0, "HTMLMediaElement.prototype.NETWORK_EMPTY");
108 todo_is(HTMLMediaElement.prototype.NETWORK_IDLE, 1, "HTMLMediaElement.prototype.NETWORK_IDLE");
109 todo_is(HTMLMediaElement.prototype.NETWORK_LOADING, 2, "HTMLMediaElement.prototype.NETWORK_LOADING");
110 todo_is(HTMLMediaElement.prototype.NETWORK_LOADED, 3, "HTMLMediaElement.prototype.NETWORK_LOADED");
111 todo_is(HTMLMediaElement.prototype.HAVE_NOTHING, 0, "HTMLMediaElement.prototype.HAVE_NOTHING");
112 todo_is(HTMLMediaElement.prototype.HAVE_METADATA, 1, "HTMLMediaElement.prototype.HAVE_METADATA");
113 todo_is(HTMLMediaElement.prototype.HAVE_CURRENT_DATA, 2, "HTMLMediaElement.prototype.HAVE_CURRENT_DATA");
114 todo_is(HTMLMediaElement.prototype.HAVE_FUTURE_DATA, 3, "HTMLMediaElement.prototype.HAVE_FUTURE_DATA");
115 todo_is(HTMLMediaElement.prototype.HAVE_ENOUGH_DATA, 4, "HTMLMediaElement.prototype.HAVE_ENOUGH_DATA");
116 is(HTMLVideoElement.prototype.NETWORK_EMPTY, 0);
117 is(HTMLVideoElement.prototype.NETWORK_IDLE, 1);
118 is(HTMLVideoElement.prototype.NETWORK_LOADING, 2);
119 is(HTMLVideoElement.prototype.NETWORK_LOADED, 3);
120 is(HTMLVideoElement.prototype.HAVE_NOTHING, 0);
121 is(HTMLVideoElement.prototype.HAVE_METADATA, 1);
122 is(HTMLVideoElement.prototype.HAVE_CURRENT_DATA, 2);
123 is(HTMLVideoElement.prototype.HAVE_FUTURE_DATA, 3);
124 is(HTMLVideoElement.prototype.HAVE_ENOUGH_DATA, 4);
125 is(HTMLAudioElement.prototype.NETWORK_EMPTY, 0);
126 is(HTMLAudioElement.prototype.NETWORK_IDLE, 1);
127 is(HTMLAudioElement.prototype.NETWORK_LOADING, 2);
128 is(HTMLAudioElement.prototype.NETWORK_LOADED, 3);
129 is(HTMLAudioElement.prototype.HAVE_NOTHING, 0);
130 is(HTMLAudioElement.prototype.HAVE_METADATA, 1);
131 is(HTMLAudioElement.prototype.HAVE_CURRENT_DATA, 2);
132 is(HTMLAudioElement.prototype.HAVE_FUTURE_DATA, 3);
133 is(HTMLAudioElement.prototype.HAVE_ENOUGH_DATA, 4);
134 is(HTMLSourceElement.prototype.NETWORK_EMPTY, undefined);
135 is(HTMLSourceElement.prototype.NETWORK_IDLE, undefined);
136 is(HTMLSourceElement.prototype.NETWORK_LOADING, undefined);
137 is(HTMLSourceElement.prototype.NETWORK_LOADED, undefined);
138 is(HTMLSourceElement.prototype.HAVE_NOTHING, undefined);
139 is(HTMLSourceElement.prototype.HAVE_METADATA, undefined);
140 is(HTMLSourceElement.prototype.HAVE_CURRENT_DATA, undefined);
141 is(HTMLSourceElement.prototype.HAVE_FUTURE_DATA, undefined);
142 is(HTMLSourceElement.prototype.HAVE_ENOUGH_DATA, undefined);
144 </script>
145 </pre>
146 </body>
147 </html>