summaryrefslogtreecommitdiff
path: root/tests/unit-tests/multimediaview
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit-tests/multimediaview')
-rwxr-xr-xtests/unit-tests/multimediaview/index.html59
-rwxr-xr-xtests/unit-tests/multimediaview/multimediaview-tests.js61
2 files changed, 0 insertions, 120 deletions
diff --git a/tests/unit-tests/multimediaview/index.html b/tests/unit-tests/multimediaview/index.html
deleted file mode 100755
index 1656029b..00000000
--- a/tests/unit-tests/multimediaview/index.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="../../../build/tizen-web-ui-fw/latest/js/jquery.js"></script>
- <script src="../../../build/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
- <script src="../../../build/tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"
- data-framework-theme="tizen-white"
- data-framework-viewport-scale=false>
- </script>
-
- <link rel="stylesheet" href="../../../libs/js/jquery-mobile-1.1.0/external/qunit.css" />
-
- <script src="../../../libs/js/jquery-mobile-1.1.0/external/qunit.js"></script>
- <script src="multimediaview-tests.js"></script>
-
- <title>MultiMediaView</title>
-</head>
-
-<body>
-
-<h1 id="qunit-header">MultiMediaView</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-
-<div id="qunit-fixture">
-
- <div data-role="page" id="multimediaview0">
- <div data-role="header" data-position="fixed">
- <h1>MultiMediaView (video)</h1>
- </div>
- <div data-role="content">
- <video data-controls="true" style="width:100%;" id="video">
- <source src="http://www.w3schools.com/html5/mov_bbb.mp4" type="video/mp4" />
- <source src="http://www.w3schools.com/html5/mov_bbb.ogg" type="video/ogg" />
- <source src="http://www.w3schools.com/html5/mov_bbb.webm" type="video/webm" />
- <p>Your browser does not support the video tag.</p>
- </video>
- </div>
- </div>
-
- <div data-role="page" id="multimediaview1">
- <div data-role="header" data-position="fixed">
- <h1>MultiMediaView (audio)</h1>
- </div>
- <div data-role="content">
- <audio data-controls="true" style="width:100%;" id="audio">
- <source src="http://www.w3schools.com/html5/mov_bbb.mp4" type="audio/mp4" />
- <source src="http://www.w3schools.com/html5/mov_bbb.ogg" type="audio/ogg" />
- <p>Your browser does not support the audio tag.</p>
- </audio>
- </div>
- </div>
-
-</div>
-
-</body>
-</html>
diff --git a/tests/unit-tests/multimediaview/multimediaview-tests.js b/tests/unit-tests/multimediaview/multimediaview-tests.js
deleted file mode 100755
index 40e24499..00000000
--- a/tests/unit-tests/multimediaview/multimediaview-tests.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Unit Test: MultiMediaView
- *
- * Wonseop Kim <wonseop.kim@samsung.com>
- */
-
-(function ($) {
- module("MultiMediaView");
-
- var unit_multimediaview = function ( widget, type ) {
- var control,
- fullscreenButton,
- width,
- height,
- played,
- timeupdated,
- ended,
- param;
-
- /* Create */
- widget.multimediaview();
- ok( widget.hasClass( "ui-multimediaview" ) , "Create" );
-
- if ( type === "video" ) {
- /* width */
- width = 100;
- widget.multimediaview( "width", width );
- equal( width, widget.width(), "API: width" );
-
- /* height */
- height = 200;
- widget.multimediaview( "height", height );
- equal( height, widget.height(), "API: height" );
-
- /* size */
- width = 256;
- height = 512;
- widget.multimediaview( "size", width, height );
- equal( "width : " + widget.width() + ", height : " + widget.height(),
- "width : " + width + ", height : " + height, "API: size" );
-
- /* fullscreen */
- fullscreenButton = widget.parent().find( ".ui-fullscreenbutton" );
-
- widget.multimediaview( "fullscreen", true );
- ok( fullscreenButton.hasClass( "ui-fullscreen-off" ), "API: fullscreen (on)" );
-
- widget.multimediaview("fullscreen", false );
- ok( fullscreenButton.hasClass( "ui-fullscreen-on" ), "API: fullscreen (off)" );
- }
- };
-
- test( "video", function () {
- unit_multimediaview( $("#video"), "video" );
- });
-
- test( "audio", function () {
- unit_multimediaview( $("#audio"), "audio" );
- });
-
-}( jQuery ));