r67637 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67636‎ | r67637 | r67638 >
Date:16:41, 8 June 2010
Author:papyromancer
Status:deferred
Tags:
Comment:
added in demo with simple css
Modified paths:
  • /branches/MwEmbedStandAlone/tests/mwEmbed_Demo.html (added) (history)
  • /branches/MwEmbedStandAlone/tests/selenium/LocalSeleniumSettings.php (deleted) (history)
  • /branches/MwEmbedStandAlone/tests/style.css (added) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/tests/style.css
@@ -0,0 +1,10 @@
 2+body {
 3+ color: white;
 4+ background-color: black;
 5+ font-family: 'Molengo', Arial, sans-serif;
 6+}
 7+
 8+#mwEmbed_video {
 9+ margin-left: auto;
 10+ margin-right: auto;
 11+}
Index: branches/MwEmbedStandAlone/tests/mwEmbed_Demo.html
@@ -0,0 +1,153 @@
 2+<!DOCTYPE HTML>
 3+<html>
 4+<head>
 5+ <title>mWEmbed Tutorial</title>
 6+ <link href='http://fonts.googleapis.com/css?family=Molengo' rel='stylesheet' type='text/css'>
 7+ <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
 8+ <!-- <script type="text/javascript" src="http://html5.kaltura.org/js" > </script> -->
 9+ <script type="text/javascript" src="../mwEmbed.js?debug=true"></script>
 10+</head>
 11+<body>
 12+
 13+<h3>mwEmbed Tutorial</h3>
 14+
 15+<div id="container">
 16+
 17+ <div id="content">
 18+
 19+ <div id="mwEmbed_video">
 20+
 21+ <video id="video" style="width:544px;height:304px;"
 22+ poster="http://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Elephants_Dream.ogg/seek%3D13-Elephants_Dream.ogg.jpg"
 23+ duration="10:53"
 24+ linkback="http://www.elephantsdream.org/" >
 25+ <source type="video/ogg" src="http://upload.wikimedia.org/wikipedia/commons/b/bd/Elephants_Dream.ogg" ></source>
 26+ <source type="video/h264" src="http://www.archive.org/download/ElephantsDream/ed_1024_512kb.mp4"></source>
 27+
 28+
 29+ <!-- Subtitles -->
 30+
 31+ <track kind="subtitles" id="video_af" srclang="af"
 32+ src="media/elephants_dream/elephant.afrikaans.srt"></track>
 33+
 34+ <track kind="subtitles" id="video_ar" srclang="ar"
 35+ src="media/elephants_dream/elephant.arabic.srt"></track>
 36+
 37+ <track kind="subtitles" id="video_bn" srclang="bn"
 38+ src="media/elephants_dream/elephant.bangla.srt"></track>
 39+
 40+ <track kind="subtitles" id="video_br" srclang="br"
 41+ src="media/elephants_dream/elephant.breton.srt"></track>
 42+
 43+ <track kind="subtitles" id="video_bg" srclang="bg"
 44+ src="media/elephants_dream/elephant.bulgarian.srt"></track>
 45+
 46+ <track kind="subtitles" id="video_ca" srclang="ca"
 47+ src="media/elephants_dream/elephant.catalan-utf8.srt"></track>
 48+
 49+ <track kind="subtitles" id="video_zh" srclang="zh"
 50+ src="media/elephants_dream/elephant.chinese.srt"></track>
 51+
 52+ <track kind="subtitles" id="video_cz" srclang="cs"
 53+ src="media/elephants_dream/elephant.czech.srt"></track>
 54+
 55+ <track kind="subtitles" id="video_da" srclang="da"
 56+ src="media/elephants_dream/elephant.danish.srt"></track>
 57+
 58+ <track kind="subtitles" id="video_nl" srclang="nl"
 59+ src="media/elephants_dream/elephant.dutch.srt"></track>
 60+
 61+ <track kind="subtitles" id="video_en" srclang="en"
 62+ src="media/elephants_dream/elephant.english.srt"></track>
 63+
 64+ <track kind="subtitles" id="video_et" srclang="et"
 65+ src="media/elephants_dream/elephant.estonian.srt"></track>
 66+
 67+ <track kind="subtitles" id="video_fi" srclang="fi"
 68+ src="media/elephants_dream/elephant.finnish.srt"></track>
 69+
 70+ <track kind="subtitles" id="video_fr" srclang="fr"
 71+ src="media/elephants_dream/elephant.french.srt"></track>
 72+
 73+ <track kind="subtitles" id="video_de" srclang="de"
 74+ src="media/elephants_dream/elephant.german.srt"></track>
 75+
 76+ <track kind="subtitles" id="video_el" srclang="el"
 77+ src="media/elephants_dream/elephant.greek.srt"></track>
 78+
 79+ <track kind="subtitles" id="video_he" srclang="he"
 80+ src="media/elephants_dream/elephant.hebrew.srt"></track>
 81+
 82+ <track kind="subtitles" id="video_hu" srclang="hu"
 83+ src="media/elephants_dream/elephant.hungarian-utf8.srt"></track>
 84+
 85+ <track kind="subtitles" id="video_it" srclang="it"
 86+ src="media/elephants_dream/elephant.italian.srt"></track>
 87+
 88+ <track kind="subtitles" id="video_ja" srclang="ja"
 89+ src="media/elephants_dream/elephant.japanese.srt"></track>
 90+
 91+ <track kind="subtitles" id="video_ja" srclang="ja"
 92+ src="media/elephants_dream/elephant.japanese-euc.srt"></track>
 93+
 94+ <track kind="subtitles" id="video_mt" srclang="mt"
 95+ src="media/elephants_dream/elephant.maltese_utf8.srt"></track>
 96+
 97+ <track kind="subtitles" id="video_nn" srclang="nn"
 98+ src="media/elephants_dream/elephant.norwegian.srt"></track>
 99+
 100+ <track kind="subtitles" id="video_pl" srclang="pl"
 101+ src="media/elephants_dream/elephant.polish.srt"></track>
 102+
 103+ <track kind="subtitles" id="video_pt" srclang="pt"
 104+ src="media/elephants_dream/elephant.portuguese.srt"></track>
 105+
 106+ <track kind="subtitles" id="video_pt_br" srclang="pt-br"
 107+ src="media/elephants_dream/elephant.brazilian.srt"></track>
 108+
 109+ <track kind="subtitles" id="video_ro" srclang="ro"
 110+ src="media/elephants_dream/elephant.romanian.srt"></track>
 111+
 112+ <track kind="subtitles" id="video_ru" srclang="ru"
 113+ src="media/elephants_dream/elephant.russian.srt"></track>
 114+
 115+
 116+ <!-- Captions -->
 117+ <track kind="captions" id="video_sl" srclang="sl"
 118+ src="media/elephants_dream/elephant.slovenian.srt"></track>
 119+
 120+ <track kind="captions" id="video_es" srclang="es"
 121+ src="media/elephants_dream/elephant.spanish.srt"></track>
 122+
 123+ <track kind="captions" id="video_es_mx" srclang="es-mx"
 124+ src="media/elephants_dream/elephant.spanish-us.srt"></track>
 125+
 126+ <track kind="captions" id="video_sk" srclang="sk"
 127+ src="media/elephants_dream/elephant.slovak.srt"></track>
 128+
 129+ <track kind="captions" id="video_sv" srclang="sv"
 130+ src="media/elephants_dream/elephant.swedish.srt"></track>
 131+
 132+
 133+ <!-- Audio Description -->
 134+ <track kind="descriptions" id="audiodesc" srclang="en"
 135+ src="media/elephants_dream/audiodescription.srt"></track>
 136+
 137+ <!-- Chapters -->
 138+ <track kind="chapters" id="chapters" srclang="en" label="Chapters"
 139+ src="media/elephants_dream/chapters.srt"></track>
 140+
 141+ </video>
 142+
 143+
 144+ </div><!-- END mwEmbed_video -->
 145+
 146+ <div id="instructions">
 147+ <p>Instructions will go here</p>
 148+ </div><!-- END instructions -->
 149+ </div><!-- END content -->
 150+</div><!-- END container -->
 151+
 152+</body>
 153+</html>
 154+
Index: branches/MwEmbedStandAlone/tests/selenium/LocalSeleniumSettings.php
@@ -1,53 +0,0 @@
2 -<?php
3 -// This template file contains variables that should be localized.
4 -// The line (specifying the location of the PHP/PEAR libraries) must be
5 -// first. Moving it to a position later in the file will almost certainly
6 -// cause an error.
7 -
8 -// In order to use this file, first copy it to LocalSeleniumSettings.php.
9 -// Then edit the information to conform to the local environment. You
10 -// will almost certainly have to uncomment the line set_include_path ... and
11 -// change the string 'PEAR' to the path to your PEAR library, e.g.,
12 -// '/usr/share/php/PEAR' for a Debian based Linux system.
13 -// The edited file must appear in the same directory as does RunSeleniumTests.php.
14 -
15 -// include path. Set 'PEAR" to '/path/to/PEAR/library'
16 -
17 -// URL: http://localhost/tests/RunSeleniumTests.php
18 -#set_include_path( get_include_path() . PATH_SEPARATOR . 'PEAR' );
19 -
20 -// Hostname of selenium server
21 -$wgSeleniumTestsSeleniumHost = 'grid.tesla.usability.wikimedia.org';
22 -
23 -// URL of the wiki to be tested. Consult web server configuration.
24 -$wgSeleniumTestsWikiUrl = 'http://prototype.wikimedia.org/test.1';
25 -
26 -// Port used by selenium server (optional - default is 4444)
27 -$wgSeleniumServerPort = 4444;
28 -
29 -// Wiki login. Used by Selenium to log onto the wiki
30 -$wgSeleniumTestsWikiUser = 'test-user';
31 -$wgSeleniumTestsWikiPassword = 'test-password';
32 -
33 -// Common browsers on Windows platform. Modify for other platforms or
34 -// other Windows browsers
35 -// Use the *chrome handler in order to be able to test file uploads
36 -// further solution suggestions: http://www.brokenbuild.com/blog/2007/06/07/testing-file-uploads-with-selenium-rc-and-firefoxor-reducing-javascript-security-in-firefox-for-fun-and-profit/
37 -// $wgSeleniumTestsBrowsers['firefox'] = '*firefox c:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe';
38 -$wgSeleniumTestsBrowsers['firefox'] = '*firefox /usr/bin/firefox';
39 -$wgSeleniumTestsBrowsers['iexplorer'] = '*iexploreproxy';
40 -$wgSeleniumTestsBrowsers['opera'] = '*chrome /usr/bin/opera';
41 -$wgSeleniumTestsBrowsers['firefox'] = 'Safari on OS X Snow Leopard';
42 -
43 -
44 -// Actually, use this browser
45 -$wgSeleniumTestsUseBrowser = 'firefox';
46 -
47 -// Set command line mode
48 -$wgSeleniumTestsRunMode = 'cli';
49 -
50 -// List of tests to be included by default
51 -$wgSeleniumTestIncludes = array(
52 - 'selenium/NewSeleniumTest.php'
53 -);
54 -?>

Status & tagging log