2008-07-29 21:55:27 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
Adapted from:
|
2008-12-14 19:38:16 -08:00
|
|
|
http://simon.html5.org/test/html/dom/interfaces/htmlelement/htmlmediaelement/const-unsigned-short/001.htm
|
2008-07-29 21:55:27 -07:00
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>Media test: constants</title>
|
2009-05-06 13:46:04 -07:00
|
|
|
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
2008-07-29 21:55:27 -07:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
2009-02-15 08:26:32 -08:00
|
|
|
<video onerror="event.stopPropagation();"><source></video><audio onerror="event.stopPropagation();"><source></audio>
|
2008-07-29 21:55:27 -07:00
|
|
|
<pre id="test">
|
|
|
|
<script class="testbody" type="text/javascript">
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLElement.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLElement.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLElement.NETWORK_LOADING, undefined);
|
|
|
|
is(HTMLElement.NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLElement.NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLElement.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLElement.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLElement.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLElement.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLElement.HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLElement.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLElement.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLElement.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLElement.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLMediaElement.NETWORK_EMPTY, 0);
|
|
|
|
is(HTMLMediaElement.NETWORK_IDLE, 1);
|
|
|
|
is(HTMLMediaElement.NETWORK_LOADING, 2);
|
2009-10-09 04:48:33 -07:00
|
|
|
todo_is(HTMLMediaElement.NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLMediaElement.NETWORK_NO_SOURCE, 4);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLMediaElement.HAVE_NOTHING, 0);
|
|
|
|
is(HTMLMediaElement.HAVE_METADATA, 1);
|
|
|
|
is(HTMLMediaElement.HAVE_CURRENT_DATA, 2);
|
|
|
|
is(HTMLMediaElement.HAVE_FUTURE_DATA, 3);
|
|
|
|
is(HTMLMediaElement.HAVE_ENOUGH_DATA, 4);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLMediaElement.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLMediaElement.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLMediaElement.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLMediaElement.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLVideoElement.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLVideoElement.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLVideoElement.NETWORK_LOADING, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLVideoElement.NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLVideoElement.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLVideoElement.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLVideoElement.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLVideoElement.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLVideoElement.HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLVideoElement.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLVideoElement.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLVideoElement.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLVideoElement.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLAudioElement.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLAudioElement.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLAudioElement.NETWORK_LOADING, undefined);
|
|
|
|
is(HTMLAudioElement.NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLAudioElement.NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLAudioElement.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLAudioElement.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLAudioElement.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLAudioElement.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLAudioElement.HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLAudioElement.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLAudioElement.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLAudioElement.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLAudioElement.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLSourceElement.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLSourceElement.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLSourceElement.NETWORK_LOADING, undefined);
|
|
|
|
is(HTMLSourceElement.NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLSourceElement.NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLSourceElement.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLSourceElement.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLSourceElement.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLSourceElement.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLSourceElement.HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLSourceElement.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLSourceElement.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLSourceElement.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLSourceElement.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
|
|
|
is(HTMLMediaError.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLMediaError.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLMediaError.NETWORK_LOADING, undefined);
|
|
|
|
is(HTMLMediaError.NETWORK_LOADED, undefined);
|
|
|
|
is(HTMLMediaError.NETWORK_NO_SOURCE, undefined);
|
|
|
|
is(HTMLMediaError.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLMediaError.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLMediaError.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLMediaError.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLMediaError.HAVE_ENOUGH_DATA, undefined);
|
|
|
|
is(HTMLMediaError.MEDIA_ERR_ABORTED, 1);
|
|
|
|
is(HTMLMediaError.MEDIA_ERR_NETWORK, 2);
|
|
|
|
is(HTMLMediaError.MEDIA_ERR_DECODE, 3);
|
|
|
|
is(HTMLMediaError.MEDIA_ERR_SRC_NOT_SUPPORTED, 4);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.body.NETWORK_EMPTY, undefined);
|
|
|
|
is(document.body.NETWORK_IDLE, undefined);
|
|
|
|
is(document.body.NETWORK_LOADING, undefined);
|
|
|
|
is(document.body.NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.body.NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.body.HAVE_NOTHING, undefined);
|
|
|
|
is(document.body.HAVE_METADATA, undefined);
|
|
|
|
is(document.body.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(document.body.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(document.body.HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.body.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(document.body.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(document.body.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(document.body.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.getElementsByTagName("video")[0].NETWORK_EMPTY, 0);
|
|
|
|
is(document.getElementsByTagName("video")[0].NETWORK_IDLE, 1);
|
|
|
|
is(document.getElementsByTagName("video")[0].NETWORK_LOADING, 2);
|
|
|
|
is(document.getElementsByTagName("video")[0].NETWORK_LOADED, 3);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.getElementsByTagName("video")[0].NETWORK_NO_SOURCE, 4);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.getElementsByTagName("video")[0].HAVE_NOTHING, 0);
|
|
|
|
is(document.getElementsByTagName("video")[0].HAVE_METADATA, 1);
|
|
|
|
is(document.getElementsByTagName("video")[0].HAVE_CURRENT_DATA, 2);
|
|
|
|
is(document.getElementsByTagName("video")[0].HAVE_FUTURE_DATA, 3);
|
|
|
|
is(document.getElementsByTagName("video")[0].HAVE_ENOUGH_DATA, 4);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.getElementsByTagName("video")[0].MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(document.getElementsByTagName("video")[0].MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(document.getElementsByTagName("video")[0].MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(document.getElementsByTagName("video")[0].MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.getElementsByTagName("audio")[0].NETWORK_EMPTY, 0);
|
|
|
|
is(document.getElementsByTagName("audio")[0].NETWORK_IDLE, 1);
|
|
|
|
is(document.getElementsByTagName("audio")[0].NETWORK_LOADING, 2);
|
|
|
|
is(document.getElementsByTagName("audio")[0].NETWORK_LOADED, 3);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.getElementsByTagName("audio")[0].NETWORK_NO_SOURCE, 4);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.getElementsByTagName("audio")[0].HAVE_NOTHING, 0);
|
|
|
|
is(document.getElementsByTagName("audio")[0].HAVE_METADATA, 1);
|
|
|
|
is(document.getElementsByTagName("audio")[0].HAVE_CURRENT_DATA, 2);
|
|
|
|
is(document.getElementsByTagName("audio")[0].HAVE_FUTURE_DATA, 3);
|
|
|
|
is(document.getElementsByTagName("audio")[0].HAVE_ENOUGH_DATA, 4);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.getElementsByTagName("audio")[0].MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(document.getElementsByTagName("audio")[0].MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(document.getElementsByTagName("audio")[0].MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(document.getElementsByTagName("audio")[0].MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.getElementsByTagName("source")[0].NETWORK_EMPTY, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].NETWORK_IDLE, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].NETWORK_LOADING, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.getElementsByTagName("source")[0].NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(document.getElementsByTagName("source")[0].HAVE_NOTHING, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].HAVE_METADATA, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(document.getElementsByTagName("source")[0].MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(document.getElementsByTagName("source")[0].MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLElement.prototype.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLElement.prototype.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLElement.prototype.NETWORK_LOADING, undefined);
|
|
|
|
is(HTMLElement.prototype.NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLElement.prototype.NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLElement.prototype.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLElement.prototype.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLElement.prototype.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLElement.prototype.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLElement.prototype.HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLElement.prototype.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLElement.prototype.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLElement.prototype.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLElement.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
todo_is(HTMLMediaElement.prototype.NETWORK_EMPTY, 0, "HTMLMediaElement.prototype.NETWORK_EMPTY");
|
|
|
|
todo_is(HTMLMediaElement.prototype.NETWORK_IDLE, 1, "HTMLMediaElement.prototype.NETWORK_IDLE");
|
|
|
|
todo_is(HTMLMediaElement.prototype.NETWORK_LOADING, 2, "HTMLMediaElement.prototype.NETWORK_LOADING");
|
|
|
|
todo_is(HTMLMediaElement.prototype.NETWORK_LOADED, 3, "HTMLMediaElement.prototype.NETWORK_LOADED");
|
2009-09-21 17:08:13 -07:00
|
|
|
todo_is(HTMLMediaElement.prototype.NETWORK_NO_SOURCE, 4, "HTMLMediaElement.prototype.NETWORK_NO_SOURCE");
|
2008-12-14 19:38:16 -08:00
|
|
|
todo_is(HTMLMediaElement.prototype.HAVE_NOTHING, 0, "HTMLMediaElement.prototype.HAVE_NOTHING");
|
|
|
|
todo_is(HTMLMediaElement.prototype.HAVE_METADATA, 1, "HTMLMediaElement.prototype.HAVE_METADATA");
|
|
|
|
todo_is(HTMLMediaElement.prototype.HAVE_CURRENT_DATA, 2, "HTMLMediaElement.prototype.HAVE_CURRENT_DATA");
|
|
|
|
todo_is(HTMLMediaElement.prototype.HAVE_FUTURE_DATA, 3, "HTMLMediaElement.prototype.HAVE_FUTURE_DATA");
|
|
|
|
todo_is(HTMLMediaElement.prototype.HAVE_ENOUGH_DATA, 4, "HTMLMediaElement.prototype.HAVE_ENOUGH_DATA");
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLMediaElement.prototype.MEDIA_ERR_ABORTED, undefined, "HTMLMediaElement.prototype.MEDIA_ERR_ABORTED");
|
|
|
|
is(HTMLMediaElement.prototype.MEDIA_ERR_NETWORK, undefined, "HTMLMediaElement.prototype.MEDIA_ERR_NETWORK");
|
|
|
|
is(HTMLMediaElement.prototype.MEDIA_ERR_DECODE, undefined, "HTMLMediaElement.prototype.MEDIA_ERR_DECODE");
|
|
|
|
is(HTMLMediaElement.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined, "HTMLMediaElement.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED");
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLVideoElement.prototype.NETWORK_EMPTY, 0);
|
|
|
|
is(HTMLVideoElement.prototype.NETWORK_IDLE, 1);
|
|
|
|
is(HTMLVideoElement.prototype.NETWORK_LOADING, 2);
|
|
|
|
is(HTMLVideoElement.prototype.NETWORK_LOADED, 3);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLVideoElement.prototype.NETWORK_NO_SOURCE, 4);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLVideoElement.prototype.HAVE_NOTHING, 0);
|
|
|
|
is(HTMLVideoElement.prototype.HAVE_METADATA, 1);
|
|
|
|
is(HTMLVideoElement.prototype.HAVE_CURRENT_DATA, 2);
|
|
|
|
is(HTMLVideoElement.prototype.HAVE_FUTURE_DATA, 3);
|
|
|
|
is(HTMLVideoElement.prototype.HAVE_ENOUGH_DATA, 4);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLVideoElement.prototype.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLVideoElement.prototype.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLVideoElement.prototype.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLVideoElement.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLAudioElement.prototype.NETWORK_EMPTY, 0);
|
|
|
|
is(HTMLAudioElement.prototype.NETWORK_IDLE, 1);
|
|
|
|
is(HTMLAudioElement.prototype.NETWORK_LOADING, 2);
|
|
|
|
is(HTMLAudioElement.prototype.NETWORK_LOADED, 3);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLAudioElement.prototype.NETWORK_NO_SOURCE, 4);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLAudioElement.prototype.HAVE_NOTHING, 0);
|
|
|
|
is(HTMLAudioElement.prototype.HAVE_METADATA, 1);
|
|
|
|
is(HTMLAudioElement.prototype.HAVE_CURRENT_DATA, 2);
|
|
|
|
is(HTMLAudioElement.prototype.HAVE_FUTURE_DATA, 3);
|
|
|
|
is(HTMLAudioElement.prototype.HAVE_ENOUGH_DATA, 4);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLAudioElement.prototype.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLAudioElement.prototype.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLAudioElement.prototype.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLAudioElement.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLSourceElement.prototype.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.NETWORK_LOADING, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.NETWORK_LOADED, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLSourceElement.prototype.NETWORK_NO_SOURCE, undefined);
|
2008-12-14 19:38:16 -08:00
|
|
|
is(HTMLSourceElement.prototype.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.HAVE_ENOUGH_DATA, undefined);
|
2009-09-21 17:08:13 -07:00
|
|
|
is(HTMLSourceElement.prototype.MEDIA_ERR_ABORTED, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.MEDIA_ERR_NETWORK, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.MEDIA_ERR_DECODE, undefined);
|
|
|
|
is(HTMLSourceElement.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED, undefined);
|
|
|
|
is(HTMLMediaError.prototype.NETWORK_EMPTY, undefined);
|
|
|
|
is(HTMLMediaError.prototype.NETWORK_IDLE, undefined);
|
|
|
|
is(HTMLMediaError.prototype.NETWORK_LOADING, undefined);
|
|
|
|
is(HTMLMediaError.prototype.NETWORK_LOADED, undefined);
|
|
|
|
is(HTMLMediaError.prototype.NETWORK_NO_SOURCE, undefined);
|
|
|
|
is(HTMLMediaError.prototype.HAVE_NOTHING, undefined);
|
|
|
|
is(HTMLMediaError.prototype.HAVE_METADATA, undefined);
|
|
|
|
is(HTMLMediaError.prototype.HAVE_CURRENT_DATA, undefined);
|
|
|
|
is(HTMLMediaError.prototype.HAVE_FUTURE_DATA, undefined);
|
|
|
|
is(HTMLMediaError.prototype.HAVE_ENOUGH_DATA, undefined);
|
|
|
|
is(HTMLMediaError.prototype.MEDIA_ERR_ABORTED, 1);
|
|
|
|
is(HTMLMediaError.prototype.MEDIA_ERR_NETWORK, 2);
|
|
|
|
is(HTMLMediaError.prototype.MEDIA_ERR_DECODE, 3);
|
|
|
|
is(HTMLMediaError.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED, 4);
|
2008-07-29 21:55:27 -07:00
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|