diff --git a/.gitignore b/.gitignore index f4513044..56d7e472 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,4 @@ .project -static/script-tests/prelude.js -static/js-test-driver-rt.conf -chromedriver.log *sublime-* .DS_Store /.settings diff --git a/php/ondevicetesting-deviceconfig.php b/php/ondevicetesting-deviceconfig.php deleted file mode 100644 index a42359b0..00000000 --- a/php/ondevicetesting-deviceconfig.php +++ /dev/null @@ -1,28 +0,0 @@ -=0.0.1' - diff --git a/static/Gemfile.lock b/static/Gemfile.lock deleted file mode 100644 index 6bb12493..00000000 --- a/static/Gemfile.lock +++ /dev/null @@ -1,28 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - childprocess (0.5.3) - ffi (~> 1.0, >= 1.0.11) - ffi (1.4.0) - json (1.8.0) - multi_json (1.7.7) - rake (10.0.4) - rubygems-update (2.2.1) - rubyzip (0.9.9) - selenium-webdriver (2.35.1) - childprocess (>= 0.2.5) - multi_json (~> 1.0) - rubyzip (< 1.0.0) - websocket (~> 1.0.4) - tal-test-runner (0.0.2.1411400911) - json - rake - rubygems-update - selenium-webdriver (<= 2.35.1) - websocket (1.0.7) - -PLATFORMS - ruby - -DEPENDENCIES - tal-test-runner (>= 0.0.1) diff --git a/static/script-tests/prelude.js.in b/static/script-tests/prelude.js.in deleted file mode 100644 index 445e07a8..00000000 --- a/static/script-tests/prelude.js.in +++ /dev/null @@ -1,17 +0,0 @@ -(function() { - - webapis = { }; - - this.antie = { - framework: { - deviceConfiguration: {"modules":{"base":"antie\/devices\/browserdevice","modifiers":["antie\/devices\/anim\/styletopleft","antie\/devices\/media\/html5","antie\/devices\/data\/json2","antie\/devices\/net\/default"]},"mediasets":{"tv":"stb-all-h264","radio":"stb-aac"},"streaming":{"video":{"mediaSelectorAPI":"jsfunc","mediaSelectorURI":"https:\/\/ipsecure.stage.bbc.co.uk\/mediaselector\/4\/jsfunc\/stream\/%vpid%\/%callback%","mediaURIFormat":"%href%","supported":[{"protocols":["http"],"encodings":["h264"],"maximumBitRate":2800,"maximumVideoLines":1080}]},"audio":{"mediaSelectorAPI":"jsfunc","mediaSelectorURI":"https:\/\/ipsecure.stage.bbc.co.uk\/mediaselector\/4\/jsfunc\/stream\/%vpid%\/%callback%","mediaURIFormat":"%href%","supported":[{"protocols":["http"],"encodings":["aac"]}]}},"input":{"map":{"13":"ENTER","37":"LEFT","38":"UP","39":"RIGHT","40":"DOWN","83":"SUBTITLE","73":"INFO"}},"accessibility":{"captions":{"supported":["application\/ttaf+xml"]}},"layouts":[{"width":999999,"height":999999,"module":"fixtures\/layouts\/toobig","classes":["toobig"]},{"width":960,"height":540,"module":"fixtures\/layouts\/default","classes":["browserdevice540p"]}],"deviceConfigurationKey":"devices-html5-1","widgets":{"horizontalprogress":{"animate":false},"componentcontainer":{"fade":false},"horizontalcarousel":{"fade":true,"bindDelay":10}},"components":[]} - } - }; - - this.require = { - baseUrl: "${SERVER}/test/script-tests", - paths: { - antie : "${SERVER}/test/script" - } - }; -})(); diff --git a/static/ttr.json b/static/ttr.json deleted file mode 100644 index 0839696d..00000000 --- a/static/ttr.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "scriptblock" : - { - "include" : [ - "script-tests/prelude.js", - "script-tests/lib/require.js", - "script-tests/lib/queuedrequire.js", - "script-tests/lib/mockapplication.js", - "script-tests/lib/sinon.js", - "script-tests/lib/ondevicetestconfigvalidate.js", - "script-tests/api/*.js", - "script-tests/mocks/*.js", - "script-tests/tests/devices/mediaplayer/commontests.js", - "script-tests/tests/devices/mediaplayer/html5commontests.js", - "script-tests/tests/devices/mediaplayer/cehtmlcommontests.js", - "script-tests/fixtures/layouts/*.js", - "script/**/*.js" - ], - "exclude" : [ - "script/devices/**/*.js" - ] - }, - - "testblock" : - { - "include" : [ "script-tests/tests/**/*.js" ], - "exclude" : [ - "script-tests/tests/devices/storage/*.js", - "script-tests/tests/sanitisers/*.js" - ] - }, - - "serveblock" : - { - "include" : [ - "script-tests/lib/*.css", - "script-tests/fixtures/*.js", - "script-tests/fixtures/*.css", - "script-tests/fixtures/*.json", - "script-tests/fixtures/*.html", - "script-tests/fixtures/requiremodule.js", - "script-tests/fixtures/dynamicstylesheet.css", - "script-tests/fixtures/layouts/default.js", - "script-tests/fixtures/layouts/toobig.js", - "script-tests/fixtures/components/buttoncomponent.js", - "script-tests/fixtures/components/emptycomponent.js", - "script-tests/fixtures/components/multipleshowcomponent.js", - "script-tests/fixtures/components/eventtestcomponent.js", - "script/devices/**/*.js" - ] - }, - - "prelude" : { - "template" : "script-tests/prelude.js.in", - "output" : "script-tests/prelude.js" - } -} diff --git a/static/unit-testing/JsTestDriver-1.3.3d.jar b/static/unit-testing/JsTestDriver-1.3.3d.jar deleted file mode 100644 index 9de7cf64..00000000 Binary files a/static/unit-testing/JsTestDriver-1.3.3d.jar and /dev/null differ diff --git a/static/unit-testing/lcov-file.rb b/static/unit-testing/lcov-file.rb deleted file mode 100644 index 474789e6..00000000 --- a/static/unit-testing/lcov-file.rb +++ /dev/null @@ -1,126 +0,0 @@ -#single lcov entry - filename and array of line numbers/execution count pairs -class LCOVEntry - def initialize( filename ) - @filename = filename - @lineNumbers = [] - @numberOfExecutions = [] - end - - #gets filename for this entry - def getFilename - return @filename - end - - #adds line/execution pair to linenumber/exexution array - def addLineExecution( lineNumber, numberOfExecutions ) - @lineNumbers.push( lineNumber ); - @numberOfExecutions.push( numberOfExecutions ); - end - - #outputs this entry in LCOV format - def outputToLCOV - lcovString = "SF:#{@filename}\n" - @lineNumbers.each do |line| - lcovString += "DA:#{line},#{@numberOfExecutions[ @lineNumbers.index( line ) ]}\n" - end - lcovString += "end_of_record\n" - return lcovString; - end - - #returns an array of any lines that have been executed more than zero time - def nonZeroExecLines - nonZeroExecutionsLines = []; - lineIndex = 0; - - @numberOfExecutions.each do |execution| - if( execution > 0 ) - nonZeroExecutionsLines.push( lineIndex ) - end - lineIndex += 1 - end - - return nonZeroExecutionsLines; - end - - #remove the lines listed in the lineNumbers array - def removeLines( lineNumbers ) - lineNumbers.each do |ln| - @lineNumbers.delete_at( ln ); - @numberOfExecutions.delete_at( ln ); - end - end - -end - -#represents a whole LCOV file -class LCOVFile - def initialize( pathToLCOV ) - @lcovEntries = [] - - lcovFileContents = IO.read( pathToLCOV ) - lcovLines = lcovFileContents.split( "\n" ) - lineIndex = 0; - - #iterate until we hit the last line - until lineIndex == lcovLines.length do - #this should be the filename record - split into annotation and actual filename - fnRecord = lcovLines[ lineIndex ].split( ":" ) - - #second entry should be filename - fileName = fnRecord[ 1 ] - lineIndex += 1 - - lcovEntry = LCOVEntry.new( fileName ); - - #iterate until we meet the end_of_record marker - until lcovLines[ lineIndex ] == "end_of_record" do - #split the line into the annotation and the line number/execution pair - lcRecord = lcovLines[ lineIndex ].split( ":" ) - #split the line number/execution pair into seperate fields - lcLineNumExecutions = lcRecord[ 1 ].split( ",") - - #add the line number and execution to this lcov entry - lcovEntry.addLineExecution( Integer( lcLineNumExecutions[ 0 ] ), Integer( lcLineNumExecutions[ 1 ] ) ) - lineIndex += 1 - end - lineIndex += 1 - - if( (!fileName.include? "script-tests") && (!fileName.include? "script/lib") && (!fileName.include? "script/devices/data") ) - @lcovEntries.push( lcovEntry ); - end - end - end - - #get the list of entries - def getEntries - return @lcovEntries - end - - #find the lcov entry which matches the passed filename - def findEntryByFilename( filename ) - @lcovEntries.each do |entry| - if( entry.getFilename == filename ) - return entry; - end - end - end - - #subtracts a coverage baseline LCOV from the current LCOV - def removeBaselineLCOV( baseLCov ) - baseLCov.getEntries.each do |baseEnt| - ent = findEntryByFilename( baseEnt.getFilename ) - ent.removeLines( baseEnt.nonZeroExecLines ) - end - end - - #outputs the current LCOV data to a LCOV format file - def outputToLCOV( pathToOutputFile ) - lcovString = "" - - @lcovEntries.each do |entry| - lcovString += entry.outputToLCOV - end - - File.open(pathToOutputFile, 'w') {|f| f.write(lcovString) } - end -end diff --git a/static/unit-testing/plugins/coverage-1.3.5.jar b/static/unit-testing/plugins/coverage-1.3.5.jar deleted file mode 100644 index a54010d5..00000000 Binary files a/static/unit-testing/plugins/coverage-1.3.5.jar and /dev/null differ diff --git a/static/unit-testing/rake-helper.rb b/static/unit-testing/rake-helper.rb deleted file mode 100644 index 8f48e66a..00000000 --- a/static/unit-testing/rake-helper.rb +++ /dev/null @@ -1,33 +0,0 @@ -$setup = {}; - -if( ENV[ 'setup'] ) - pv "[INFO] Loading Setup From #{ENV[ 'setup' ]}" - $setup = JSON.parse( IO.read( ENV[ 'setup'] ) ) -end - -def OptionArg( name, default ) - value = $setup[ name ] || ENV[ name ] - return value ? "--#{name} #{value}" : default != nil ? "--#{name} #{default}" : ""; -end - -def SwitchArg( name ) - value = $setup[ name ] || ENV[ name ] - return value ? "--#{name}" : "" -end - -def PlainArg( name, default ) - value = $setup[ name ] || ENV[ name ] - return value ? value : default; -end - -#remove_lines - removes matching lines from newline delimited string -def remove_lines( text, exclude ) - lines_out = ""; - line_array = text.split( "\n" ); - exclude.each do |x| - line_array = line_array.find_all{ |i| i.index( x ) == nil } - end - - line_array.each { |i| lines_out += ( i + "\n" ) } - return lines_out -end \ No newline at end of file diff --git a/static/vendor/cache/childprocess-0.5.3.gem b/static/vendor/cache/childprocess-0.5.3.gem deleted file mode 100644 index 0a8d36db..00000000 Binary files a/static/vendor/cache/childprocess-0.5.3.gem and /dev/null differ diff --git a/static/vendor/cache/ffi-1.4.0.gem b/static/vendor/cache/ffi-1.4.0.gem deleted file mode 100644 index 5f0c483f..00000000 Binary files a/static/vendor/cache/ffi-1.4.0.gem and /dev/null differ diff --git a/static/vendor/cache/json-1.8.0.gem b/static/vendor/cache/json-1.8.0.gem deleted file mode 100644 index d384145f..00000000 Binary files a/static/vendor/cache/json-1.8.0.gem and /dev/null differ diff --git a/static/vendor/cache/multi_json-1.7.7.gem b/static/vendor/cache/multi_json-1.7.7.gem deleted file mode 100644 index ca25c16a..00000000 Binary files a/static/vendor/cache/multi_json-1.7.7.gem and /dev/null differ diff --git a/static/vendor/cache/rake-10.0.4.gem b/static/vendor/cache/rake-10.0.4.gem deleted file mode 100644 index 773869c2..00000000 Binary files a/static/vendor/cache/rake-10.0.4.gem and /dev/null differ diff --git a/static/vendor/cache/rubygems-update-2.2.1.gem b/static/vendor/cache/rubygems-update-2.2.1.gem deleted file mode 100644 index 746257b7..00000000 Binary files a/static/vendor/cache/rubygems-update-2.2.1.gem and /dev/null differ diff --git a/static/vendor/cache/rubyzip-0.9.9.gem b/static/vendor/cache/rubyzip-0.9.9.gem deleted file mode 100644 index 6b87e2e3..00000000 Binary files a/static/vendor/cache/rubyzip-0.9.9.gem and /dev/null differ diff --git a/static/vendor/cache/selenium-webdriver-2.35.1.gem b/static/vendor/cache/selenium-webdriver-2.35.1.gem deleted file mode 100644 index 51838285..00000000 Binary files a/static/vendor/cache/selenium-webdriver-2.35.1.gem and /dev/null differ diff --git a/static/vendor/cache/tal-test-runner-0.0.2.1411400911.gem b/static/vendor/cache/tal-test-runner-0.0.2.1411400911.gem deleted file mode 100644 index 8e9066f5..00000000 Binary files a/static/vendor/cache/tal-test-runner-0.0.2.1411400911.gem and /dev/null differ diff --git a/static/vendor/cache/websocket-1.0.7.gem b/static/vendor/cache/websocket-1.0.7.gem deleted file mode 100644 index d1d22d6e..00000000 Binary files a/static/vendor/cache/websocket-1.0.7.gem and /dev/null differ