Author: smaisonneuve Date: 2015-06-09 12:49:05 +0000 (Tue, 09 Jun 2015) New Revision: 1647 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1647 Log: [Build] - Building test app Modified: oipf/lib/configuration/OipfConfiguration.js oipf/lib/init/init.js oipf/lib/paths.json oipf/test/server.js oipf/test/view/test.html Modified: oipf/lib/configuration/OipfConfiguration.js =================================================================== --- oipf/lib/configuration/OipfConfiguration.js 2015-06-09 12:36:00 UTC (rev 1646) +++ oipf/lib/configuration/OipfConfiguration.js 2015-06-09 12:49:05 UTC (rev 1647) @@ -1,24 +1,24 @@ -/* +/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var OipfConfiguration = Class.extend({ - + init: function() { - + //Channels configuration this.channelNumber = 13; this.currentChannel = "ARTE"; this.channelCountry = "France"; - this.channelList = "../../data/oipfChannels.xml"; - + this.channelList = "./lib/build/oipfChannels.xml"; + //Programmes configuration this.programmeType = "xmlTV"; this.programmeCountry = "France"; - this.programmes = "../../data/xmlTVProgrammes.xml"; - + this.programmes = "./lib/build/xmlTVProgrammes.xml"; + //ApplicationManager this.applicationVisualizationMode = 3; } Modified: oipf/lib/init/init.js =================================================================== --- oipf/lib/init/init.js 2015-06-09 12:36:00 UTC (rev 1646) +++ oipf/lib/init/init.js 2015-06-09 12:49:05 UTC (rev 1647) @@ -1,5 +1,5 @@ // Used in the channelType property to indicate a TV channel. -CHANNEL_CONSTANT = {"TYPE_TV": 0}; +var CHANNEL_CONSTANT = {"TYPE_TV": 0}; var VideoBroadcastObject = document.registerElement('video-broadcast', { prototype: VideoBroadcastObject.prototype, @@ -30,7 +30,7 @@ /* * Description: * Information necessary to channel creation of identifier type ID_DVB_*. - * Not a real data, just for simulation but the syntactic structure is based on + * Not a real data, just for simulation but the syntactic structure is based on * DVB-SI [EN 300 468] section 6.2.13. */ var TERRESTIAL_DELIVERY_SYSTEM_DESCRIPTOR = [ Modified: oipf/lib/paths.json =================================================================== --- oipf/lib/paths.json 2015-06-09 12:36:00 UTC (rev 1646) +++ oipf/lib/paths.json 2015-06-09 12:49:05 UTC (rev 1647) @@ -7,7 +7,7 @@ "js/impl/model/constants/MetadataSearchConstants.js", "js/impl/model/constants/DaeMimeType.js", "js/impl/model/constants/IdType.js", - "js/lib/Class.js", + "js/utils/Class.js", "js/utils/Timeout.js", "js/utils/Calculation.js", "js/utils/ChannelUtils.js", Modified: oipf/test/server.js =================================================================== --- oipf/test/server.js 2015-06-09 12:36:00 UTC (rev 1646) +++ oipf/test/server.js 2015-06-09 12:49:05 UTC (rev 1647) @@ -1,7 +1,7 @@ var express = require("express"); var app = express(); -app.use(express.static(".")); +app.use(express.static("..")); app.get("/", function(req, res) { res.sendFile("view/test.html", {root: "."}); Modified: oipf/test/view/test.html =================================================================== --- oipf/test/view/test.html 2015-06-09 12:36:00 UTC (rev 1646) +++ oipf/test/view/test.html 2015-06-09 12:49:05 UTC (rev 1647) @@ -10,21 +10,21 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <link rel="stylesheet" type="text/css" href="../css/test.css"/> + <link rel="stylesheet" type="text/css" href="./test/css/test.css"/> - <script src="../../lib/build/oipf-lib.js" type="text/javascript"></script> + <script src="./lib/build/oipf-lib.js" type="text/javascript"></script> - <script src="../js/TestCase.js" type="text/javascript"></script> - <script src="../js/ApplicationManagerTest.js" type="text/javascript"></script> - <script src="../js/CapabilitiesTest.js" type="text/javascript"></script> - <script src="../js/ParentalControlManagerTest.js" type="text/javascript"></script> - <script src="../js/RecordingSchedulerTest.js" type="text/javascript"></script> - <script src="../js/ConfigurationTest.js" type="text/javascript"></script> - <script src="../js/SearchManagerTest.js" type="text/javascript"></script> - <script src="../js/VideoBroadcastTest.js" type="text/javascript"></script> - <script src="../js/OipfFactoryTest.js" type="text/javascript"></script> - <script src="../js/TestConfig.js" type="text/javascript"></script> - <script src="../js/Test.js" type="text/javascript"></script> + <script src="./test/js/TestCase.js" type="text/javascript"></script> + <script src="./test/js/ApplicationManagerTest.js" type="text/javascript"></script> + <script src="./test/js/CapabilitiesTest.js" type="text/javascript"></script> + <script src="./test/js/ParentalControlManagerTest.js" type="text/javascript"></script> + <script src="./test/js/RecordingSchedulerTest.js" type="text/javascript"></script> + <script src="./test/js/ConfigurationTest.js" type="text/javascript"></script> + <script src="./test/js/SearchManagerTest.js" type="text/javascript"></script> + <script src="./test/js/VideoBroadcastTest.js" type="text/javascript"></script> + <script src="./test/js/OipfFactoryTest.js" type="text/javascript"></script> + <script src="./test/js/TestConfig.js" type="text/javascript"></script> + <script src="./test/js/Test.js" type="text/javascript"></script> <script> var tests = new Test();