You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2014/07/10 17:33:50 UTC

[25/51] [abbrv] [partial] Moving plugin to root of repo

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg.png
deleted file mode 100755
index f619677..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg2x.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg2x.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg2x.png
deleted file mode 100755
index 57663ca..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-combo-box-bg2x.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-grips.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-grips.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-grips.png
deleted file mode 100755
index 1692347..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-grips.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-sprites2x.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-sprites2x.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-sprites2x.png
deleted file mode 100755
index a70f5dc..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/light-sprites2x.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle-dark.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle-dark.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle-dark.png
deleted file mode 100755
index 53e79bc..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle-dark.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle.png
deleted file mode 100755
index 0467cc5..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/pop-up-triangle.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg.png
deleted file mode 100755
index 54181ee..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg2x.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg2x.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg2x.png
deleted file mode 100755
index f886480..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search-bg2x.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search.svg
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search.svg b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search.svg
deleted file mode 100755
index d18a4fa..0000000
--- a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg width="41px" height="40px" viewBox="0 0 41 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
-    <title>Slice 1</title>
-    <description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description>
-    <defs></defs>
-    <g id="Page 1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="search" fill="#C6C8C8">
-            <path d="M0.504,16.338 C0.504,25.085 7.635,32.165 16.444,32.165 C25.24,32.165 32.382,25.085 32.382,16.338 C32.382,7.591 25.24,0.5 16.444,0.5 C7.635,0.5 0.504,7.591 0.504,16.338 L0.504,16.338 Z M5.555,16.338 C5.555,10.359 10.423,5.521 16.445,5.521 C22.455,5.521 27.333,10.36 27.333,16.338 C27.333,22.317 22.455,27.156 16.445,27.156 C10.423,27.156 5.555,22.316 5.555,16.338 L5.555,16.338 Z M27.666,30.861 L34.521,38.67 C35.625,39.772 36.338,39.781 37.46,38.67 L39.661,36.489 C40.743,35.408 40.811,34.711 39.661,33.568 L31.765,26.793 L27.666,30.861 L27.666,30.861 Z M27.666,30.861" id="Shape"></path>
-        </g>
-    </g>
-</svg>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_bw.svg
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_bw.svg b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_bw.svg
deleted file mode 100755
index 9ab9e71..0000000
--- a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_bw.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
-	<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
-	<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
-	<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
-	<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
-]>
-<svg version="1.1" baseProfile="tiny" id="search" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
-	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
-	 x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
-<path d="M1.504,17.338c0,8.747,7.131,15.827,15.94,15.827c8.796,0,15.938-7.08,15.938-15.827S26.24,1.5,17.444,1.5
-	C8.635,1.5,1.504,8.591,1.504,17.338z M6.555,17.338c0-5.979,4.868-10.817,10.89-10.817c6.01,0,10.888,4.839,10.888,10.817
-	c0,5.979-4.878,10.818-10.888,10.818C11.423,28.156,6.555,23.316,6.555,17.338z M28.666,31.861l6.855,7.809
-	c1.104,1.102,1.817,1.111,2.939,0l2.201-2.181c1.082-1.081,1.15-1.778,0-2.921l-7.896-6.775L28.666,31.861z"/>
-</svg>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_dark.svg
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_dark.svg b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_dark.svg
deleted file mode 100755
index 9ab9e71..0000000
--- a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_dark.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
-	<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
-	<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
-	<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
-	<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
-]>
-<svg version="1.1" baseProfile="tiny" id="search" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
-	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
-	 x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
-<path d="M1.504,17.338c0,8.747,7.131,15.827,15.94,15.827c8.796,0,15.938-7.08,15.938-15.827S26.24,1.5,17.444,1.5
-	C8.635,1.5,1.504,8.591,1.504,17.338z M6.555,17.338c0-5.979,4.868-10.817,10.89-10.817c6.01,0,10.888,4.839,10.888,10.817
-	c0,5.979-4.878,10.818-10.888,10.818C11.423,28.156,6.555,23.316,6.555,17.338z M28.666,31.861l6.855,7.809
-	c1.104,1.102,1.817,1.111,2.939,0l2.201-2.181c1.082-1.081,1.15-1.778,0-2.921l-7.896-6.775L28.666,31.861z"/>
-</svg>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_light.svg
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_light.svg b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_light.svg
deleted file mode 100755
index 0c0dff6..0000000
--- a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/search_light.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg width="41px" height="40px" viewBox="0 0 41 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
-    <title>Slice 1</title>
-    <description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description>
-    <defs></defs>
-    <g id="Page 1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="search" fill="#FFFFFF">
-            <path d="M0.504,16.338 C0.504,25.085 7.635,32.165 16.444,32.165 C25.24,32.165 32.382,25.085 32.382,16.338 C32.382,7.591 25.24,0.5 16.444,0.5 C7.635,0.5 0.504,7.591 0.504,16.338 L0.504,16.338 Z M5.555,16.338 C5.555,10.359 10.423,5.521 16.445,5.521 C22.455,5.521 27.333,10.36 27.333,16.338 C27.333,22.317 22.455,27.156 16.445,27.156 C10.423,27.156 5.555,22.316 5.555,16.338 L5.555,16.338 Z M27.666,30.861 L34.521,38.67 C35.625,39.772 36.338,39.781 37.46,38.67 L39.661,36.489 C40.743,35.408 40.811,34.711 39.661,33.568 L31.765,26.793 L27.666,30.861 L27.666,30.861 Z M27.666,30.861" id="Shape"></path>
-        </g>
-    </g>
-</svg>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner.png
deleted file mode 100755
index ae457fa..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner2x.png
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner2x.png b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner2x.png
deleted file mode 100755
index 3b77ee6..0000000
Binary files a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/img/spinner2x.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/package.json
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/package.json b/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/package.json
deleted file mode 100755
index 03c64ef..0000000
--- a/cordova-plugin-test-framework/www/assets/topcoat-0.7.5/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
-  "name": "topcoat",
-  "version": "0.7.5",
-  "description": "CSS for clean and fast web apps",
-  "main": "Gruntfile.js",
-  "directories": {
-    "doc": "doc",
-    "test": "test"
-  },
-  "dependencies": {
-    "topcoat-utils": "~0.1.3",
-    "topcoat-radio-button-base": "~0.1.1",
-    "topcoat-button-base": "~0.6.0",
-    "topcoat-radio-button": "~0.1.2",
-    "topcoat-navigation-bar-base": "~0.4.0",
-    "topcoat-navigation-bar": "~0.4.2",
-    "topcoat-input-base": "~0.4.1",
-    "topcoat-list-base": "~0.4.1",
-    "topcoat-list": "~0.5.0",
-    "topcoat-search-input": "~0.3.0",
-    "topcoat-search-input-base": "~0.1.2",
-    "topcoat-checkbox": "~0.4.0",
-    "topcoat-checkbox-base": "~0.1.3",
-    "topcoat-button": "~0.5.3",
-    "topcoat-icon-button": "~0.3.3",
-    "topcoat-button-bar-base": "~0.1.1",
-    "topcoat-button-bar": "~0.1.0",
-    "topcoat-textarea": "~0.3.0",
-    "topcoat-theme": "~0.5.24",
-    "topcoat-text-input": "~0.3.4",
-    "topcoat-textarea-base": "~0.3.2",
-    "topcoat-notification": "~0.1.1",
-    "topcoat-notification-base": "0.0.1",
-    "topcoat-tab-bar": "~0.1.0",
-    "topcoat-switch": "~0.1.3",
-    "topcoat-switch-base": "~0.1.0",
-    "topcoat-range-base": "0.0.3",
-    "topcoat-range": "~0.1.0"
-  },
-  "devDependencies": {
-    "grunt": "~0.4.1",
-    "grunt-contrib-copy": "~0.4.1",
-    "grunt-contrib-jade": "~0.4.0",
-    "grunt-contrib-watch": "~0.1.4",
-    "grunt-contrib-clean": "~0.4.1",
-    "grunt-exec": "~0.4.2",
-    "grunt-contrib-cssmin": "~0.5.0",
-    "jade": "~0.28.2",
-    "grunt-contrib-stylus": "~0.6.0",
-    "grunt-contrib-htmlmin": "~0.1.3",
-    "prompt": "*",
-    "csv": "*",
-    "topdoc-theme": "~0.2.7",
-    "grunt-topdoc": "~0.1.3",
-    "grunt-autoprefixer": "~0.2.20130806"
-  },
-  "scripts": {
-    "test": "grunt test",
-    "prepublish": "grunt"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/topcoat/topcoat.git"
-  },
-  "bugs": {
-    "url": "https://github.com/topcoat/topcoat/issues"
-  },
-  "license": {
-    "type": "Apache",
-    "url": "https://github.com/topcoat/topcoat/blob/master/LICENSE"
-  },
-  "keywords": [
-    "css",
-    "ui",
-    "ux",
-    "pattern",
-    "library",
-    "mobile",
-    "desktop",
-    "native",
-    "application",
-    "web",
-    "standards"
-  ]
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/jasmine_helpers.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/jasmine_helpers.js b/cordova-plugin-test-framework/www/jasmine_helpers.js
deleted file mode 100644
index 364bd57..0000000
--- a/cordova-plugin-test-framework/www/jasmine_helpers.js
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-'use strict';
-
-exports.setUpJasmine = function() {
-  // Set up jasmine
-  var jasmine = jasmineRequire.core(jasmineRequire);
-  jasmineRequire.html(jasmine);
-  var jasmineEnv = jasmine.currentEnv_ = new jasmine.Env();
-
-  jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
-  jasmineEnv.catchExceptions(false);
-
-  // Set up jasmine interface
-  var jasmineInterface = Object.create(null);
-  jasmineInterface.jasmine = jasmine;
-
-  // Fill in jasmineInterface with built-ins
-  var jasmine_env_functions = ['describe',
-                               'xdescribe',
-                               'it',
-                               'xit',
-                               'beforeEach',
-                               'afterEach',
-                               'expect',
-                               'pending',
-                               'spyOn',
-                               'addCustomEqualityTester',
-                               'addMatchers'];
-
-  jasmine_env_functions.forEach(function(fn) {
-    jasmineInterface[fn] = jasmineEnv[fn].bind(jasmineEnv);
-  });
-  jasmineInterface.clock = jasmineEnv.clock;
-
-  // Add Reporters
-  addJasmineReporters(jasmineInterface, jasmineEnv);
-
-  // Add Spec Filter
-  jasmineEnv.specFilter = function(spec) {
-    //console.log(spec.getFullName());
-    return true;
-  };
-
-  return jasmineInterface;
-}
-
-function addJasmineReporters(jasmineInterface, jasmineEnv) {
-  jasmineInterface.jsApiReporter = new jasmineInterface.jasmine.JsApiReporter({ timer: new jasmineInterface.jasmine.Timer() });
-  jasmineEnv.addReporter(jasmineInterface.jsApiReporter);
-
-  jasmineInterface.htmlReporter = new jasmineInterface.jasmine.HtmlReporter({
-    env: jasmineEnv,
-    queryString: function() { return null; },
-    onRaiseExceptionsClick: function() { },
-    getContainer: function() { return document.getElementById('content'); },
-    createElement: function() { return document.createElement.apply(document, arguments); },
-    createTextNode: function() { return document.createTextNode.apply(document, arguments); },
-    timer: new jasmineInterface.jasmine.Timer()
-  });
-  jasmineInterface.htmlReporter.initialize();
-  jasmineEnv.addReporter(jasmineInterface.htmlReporter);
-
-  /*
-  if (window.medic.enabled) {
-    jasmineRequire.medic(jasmineInterface.jasmine);
-    jasmineInterface.MedicReporter = new jasmineInterface.jasmine.MedicReporter({
-      env: jasmineEnv,
-      log: { logurl: window.medic.logurl }
-    });
-    jasmineInterface.MedicReporter.initialize();
-    jasmineEnv.addReporter(jasmineInterface.MedicReporter);
-  }
-  */
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/main.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/main.js b/cordova-plugin-test-framework/www/main.js
deleted file mode 100644
index a39a6bc..0000000
--- a/cordova-plugin-test-framework/www/main.js
+++ /dev/null
@@ -1,213 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-'use strict';
-
-// TODO: re-add medic
-
-/******************************************************************************/
-
-function getMode(callback) {
-  var mode = localStorage.getItem('cdvtests-mode') || 'main';
-  callback(mode);
-}
-
-function setMode(mode) {
-  var handlers = {
-    'main': runMain,
-    'auto': runAutoTests,
-    'manual': runManualTests
-  }
-  if (!handlers.hasOwnProperty(mode)) {
-    console.error("Unsupported mode: " + mode);
-    console.error("Defaulting to 'main'");
-    mode = 'main';
-  }
-
-  localStorage.setItem('cdvtests-mode', mode);
-  clearContent();
-
-  handlers[mode]();
-}
-
-/******************************************************************************/
-
-function clearContent() {
-  var content = document.getElementById('content');
-  content.innerHTML = '';
-  var log = document.getElementById('log--content');
-  log.innerHTML = '';
-  var buttons = document.getElementById('buttons');
-  buttons.innerHTML = '';
-
-  setLogVisibility(false);
-}
-
-/******************************************************************************/
-
-function setTitle(title) {
-  var el = document.getElementById('title');
-  el.textContent = title;
-}
-
-/******************************************************************************/
-
-function setLogVisibility(visible) {
-  if (visible) {
-    document.getElementById('log').classList.add('expanded');
-  } else {
-    document.getElementById('log').classList.remove('expanded');
-  }
-}
-
-function toggleLogVisibility() {
-  var log = document.getElementById('log');
-  if (log.classList.contains('expanded')) {
-    log.classList.remove('expanded');
-  } else {
-    log.classList.add('expanded');
-  }
-}
-
-/******************************************************************************/
-
-function attachEvents() {
-  document.getElementById('log--title').addEventListener('click', toggleLogVisibility);
-}
-
-/******************************************************************************/
-
-function wrapConsole() {
-  var origConsole = window.console;
-
-  function appendToOnscreenLog(type, args) {
-    var el = document.getElementById('log--content');
-    var div = document.createElement('div');
-    div.classList.add('log--content--line');
-    div.classList.add('log--content--line--' + type);
-    div.textContent = Array.prototype.slice.apply(args).map(function(arg) {
-        return (typeof arg === 'string') ? arg : JSON.stringify(arg);
-      }).join(' ');
-    el.appendChild(div);
-    // scroll to bottom
-    el.scrollTop = el.scrollHeight;
-  }
-
-  function createCustomLogger(type) {
-    return function() {
-      origConsole[type].apply(origConsole, arguments);
-      //window.medic.log.apply(window.medic.log, arguments);
-      appendToOnscreenLog(type, arguments);
-      setLogVisibility(true);
-    }
-  }
-
-  window.console = {
-    log: createCustomLogger('log'),
-    warn: createCustomLogger('warn'),
-    error: createCustomLogger('error'),
-  }
-}
-
-/******************************************************************************/
-
-function createActionButton(title, callback) {
-  var buttons = document.getElementById('buttons');
-  var div = document.createElement('div');
-  var button = document.createElement('a');
-  button.textContent = title;
-  button.onclick = function(e) {
-    e.preventDefault();
-    callback();
-  };
-  button.classList.add('topcoat-button');
-  div.appendChild(button);
-  buttons.appendChild(div);
-}
-
-/******************************************************************************/
-/******************************************************************************/
-/******************************************************************************/
-
-function runAutoTests() {
-  setTitle('Auto Tests');
-
-  createActionButton('Again', setMode.bind(null, 'auto'));
-  createActionButton('Reset App', location.reload.bind(location));
-  createActionButton('Back', setMode.bind(null, 'main'));
-
-  var cdvtests = cordova.require('org.apache.cordova.test-framework.cdvtests');
-  cdvtests.defineAutoTests();
-
-  // Run the tests!
-  var jasmineEnv = window.jasmine.getEnv();
-  jasmineEnv.execute();
-}
-
-/******************************************************************************/
-
-function runManualTests() {
-  setTitle('Manual Tests');
-
-  createActionButton('Reset App', location.reload.bind(location));
-  createActionButton('Back', setMode.bind(null, 'main'));
-
-  var contentEl = document.getElementById('content');
-  var beforeEach = function(title) {
-    clearContent();
-    setTitle(title || 'Manual Tests');
-    createActionButton('Reset App', location.reload.bind(location));
-    createActionButton('Back', setMode.bind(null, 'manual'));
-  }
-  var cdvtests = cordova.require('org.apache.cordova.test-framework.cdvtests');
-  cdvtests.defineManualTests(contentEl, beforeEach, createActionButton);
-}
-
-/******************************************************************************/
-
-function runMain() {
-  setTitle('Cordova Tests');
-
-  createActionButton('Auto Tests', setMode.bind(null, 'auto'));
-  createActionButton('Manual Tests', setMode.bind(null, 'manual'));
-  createActionButton('Reset App', location.reload.bind(location));
-}
-
-/******************************************************************************/
-
-exports.init = function() {
-  /*
-  window.medic.load(function() {
-    if (window.medic.enabled) {
-      setMode('auto');
-    } else {
-    }
-  });
-  */
-  // TODO: have a way to opt-out of console wrapping in case line numbers are important.
-  // ...Or find a custom way to print line numbers using stack or something.
-  attachEvents();
-  wrapConsole();
-
-  getMode(setMode);
-};
-
-/******************************************************************************/

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/cordova-plugin-test-framework/www/tests.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-test-framework/www/tests.js b/cordova-plugin-test-framework/www/tests.js
deleted file mode 100644
index 39e42ec..0000000
--- a/cordova-plugin-test-framework/www/tests.js
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-'use strict';
-
-exports.tests = Object.create(null);
-
-function getTestsObject(api) {
-  return exports.tests[api] = exports.tests[api] || { enabled: true };
-}
-
-function requireAllTestModules() {
-  // This finds all js-modules named "tests" (regardless of plugins they came from)
-  var test_modules = cordova.require('cordova/plugin_list')
-    .map(function(jsmodule) {
-      return jsmodule.id;
-    })
-    .filter(function(id) {
-      return /\.tests$/.test(id);
-    });
-
-  // Map auto / manual test definitions for each, but without actually running the handlers
-  test_modules.forEach(function(id) {
-    try {
-      var plugintests = cordova.require(id);
-
-      if (plugintests.hasOwnProperty('defineAutoTests')) {
-        getTestsObject(id).defineAutoTests = function() {
-          describe(id + ' >>', plugintests.defineAutoTests.bind(plugintests));
-        };
-      }
-
-      if (plugintests.hasOwnProperty('defineManualTests')) {
-        getTestsObject(id).defineManualTests = plugintests.defineManualTests.bind(plugintests);
-      }
-    } catch(ex) {
-      console.warn('Failed to load tests: ', id);
-      return;
-    }
-  });
-}
-
-function createJasmineInterface() {
-  var jasmine_helpers = require('./jasmine_helpers');
-  var jasmineInterface = jasmine_helpers.setUpJasmine();
-  return jasmineInterface;
-}
-
-function attachJasmineInterfaceToGlobal() {
-  var jasmineInterface = createJasmineInterface();
-  for (var property in jasmineInterface) {
-    window[property] = jasmineInterface[property];
-  }
-}
-
-function detachJasmineInterfaceFromGlobal() {
-  var jasmineInterface = createJasmineInterface();
-  for (var property in jasmineInterface) {
-    delete window[property];
-  }
-}
-
-exports.defineAutoTests = function() {
-  requireAllTestModules();
-  attachJasmineInterfaceToGlobal();
-
-  Object.keys(exports.tests).forEach(function(key) {
-    if (!exports.tests[key].enabled)
-      return;
-    if (!exports.tests[key].hasOwnProperty('defineAutoTests'))
-      return;
-    exports.tests[key].defineAutoTests();
-  });
-};
-
-exports.defineManualTests = function(contentEl, beforeEach, createActionButton) {
-  requireAllTestModules();
-  detachJasmineInterfaceFromGlobal();
-
-  Object.keys(exports.tests).forEach(function(key) {
-    if (!exports.tests[key].enabled)
-      return;
-    if (!exports.tests[key].hasOwnProperty('defineManualTests'))
-      return;
-    createActionButton(key, function() {
-      beforeEach(key);
-      exports.tests[key].defineManualTests(contentEl, createActionButton);
-    });
-  });
-};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
new file mode 100644
index 0000000..3ce8692
--- /dev/null
+++ b/plugin.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
+    xmlns:rim="http://www.blackberry.com/ns/widgets"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    id="org.apache.cordova.test-framework"
+    version="0.1">
+    <name>Test Framework</name>
+    <description>Cordova Test Framework Plugin</description>
+    <license>Apache 2.0</license>
+    <keywords>cordova,test</keywords>
+
+    <!-- <dependency id="org.apache.cordova.appsettings" /> -->
+
+    <js-module src="www/tests.js" name="cdvtests" />
+    <js-module src="www/jasmine_helpers.js" name="jasmine_helpers" />
+    <js-module src="www/main.js" name="main" />
+
+    <asset src="www/assets" target="cdvtests" />
+
+</plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/www/assets/index.html
----------------------------------------------------------------------
diff --git a/www/assets/index.html b/www/assets/index.html
new file mode 100644
index 0000000..20e0c5f
--- /dev/null
+++ b/www/assets/index.html
@@ -0,0 +1,37 @@
+<!doctype html>
+<html>
+  <head>
+    <title>Cordova tests</title>
+    <meta charset="utf-8" />
+    <meta name="format-detection" content="telephone=no" />
+    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
+
+    <link rel="stylesheet" type="text/css" href="topcoat-0.7.5/css/topcoat-mobile-light.min.css">
+    <link rel="stylesheet" type="text/css" href="jasmine-2.0.0/jasmine.css" media="screen">
+    <link rel="stylesheet" type="text/css" href="main.css" media="screen">
+
+    <script type="text/javascript" src="jasmine-2.0.0/jasmine.js"></script>
+    <script type="text/javascript" src="jasmine-2.0.0/jasmine-html.js"></script>
+
+    <script type="text/javascript" src="../cordova.js"></script>
+
+    <!-- App scripts -->
+  </head>
+
+  <body>
+    <div id='title'></div>
+    <div id='middle'>
+      <div id='buttons'></div>
+      <div id='content'></div>
+    </div>
+    <div id='log'>
+      <div id='log--title'>Log</div>
+      <div id='log--content'></div>
+    </div>
+    <script>
+      document.addEventListener("deviceready", function() {
+        cordova.require('org.apache.cordova.test-framework.main').init();
+      });
+    </script>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/www/assets/jasmine-2.0.0/boot.js
----------------------------------------------------------------------
diff --git a/www/assets/jasmine-2.0.0/boot.js b/www/assets/jasmine-2.0.0/boot.js
new file mode 100755
index 0000000..ec8baa0
--- /dev/null
+++ b/www/assets/jasmine-2.0.0/boot.js
@@ -0,0 +1,181 @@
+/**
+ Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project.
+
+ If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms.
+
+ The location of `boot.js` can be specified and/or overridden in `jasmine.yml`.
+
+ [jasmine-gem]: http://github.com/pivotal/jasmine-gem
+ */
+
+(function() {
+
+  /**
+   * ## Require &amp; Instantiate
+   *
+   * Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference.
+   */
+  window.jasmine = jasmineRequire.core(jasmineRequire);
+
+  /**
+   * Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference.
+   */
+  jasmineRequire.html(jasmine);
+
+  /**
+   * Create the Jasmine environment. This is used to run all specs in a project.
+   */
+  var env = jasmine.getEnv();
+
+  /**
+   * ## The Global Interface
+   *
+   * Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged.
+   */
+  var jasmineInterface = {
+    describe: function(description, specDefinitions) {
+      return env.describe(description, specDefinitions);
+    },
+
+    xdescribe: function(description, specDefinitions) {
+      return env.xdescribe(description, specDefinitions);
+    },
+
+    it: function(desc, func) {
+      return env.it(desc, func);
+    },
+
+    xit: function(desc, func) {
+      return env.xit(desc, func);
+    },
+
+    beforeEach: function(beforeEachFunction) {
+      return env.beforeEach(beforeEachFunction);
+    },
+
+    afterEach: function(afterEachFunction) {
+      return env.afterEach(afterEachFunction);
+    },
+
+    expect: function(actual) {
+      return env.expect(actual);
+    },
+
+    pending: function() {
+      return env.pending();
+    },
+
+    spyOn: function(obj, methodName) {
+      return env.spyOn(obj, methodName);
+    },
+
+    jsApiReporter: new jasmine.JsApiReporter({
+      timer: new jasmine.Timer()
+    })
+  };
+
+  /**
+   * Add all of the Jasmine global/public interface to the proper global, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`.
+   */
+  if (typeof window == "undefined" && typeof exports == "object") {
+    extend(exports, jasmineInterface);
+  } else {
+    extend(window, jasmineInterface);
+  }
+
+  /**
+   * Expose the interface for adding custom equality testers.
+   */
+  jasmine.addCustomEqualityTester = function(tester) {
+    env.addCustomEqualityTester(tester);
+  };
+
+  /**
+   * Expose the interface for adding custom expectation matchers
+   */
+  jasmine.addMatchers = function(matchers) {
+    return env.addMatchers(matchers);
+  };
+
+  /**
+   * Expose the mock interface for the JavaScript timeout functions
+   */
+  jasmine.clock = function() {
+    return env.clock;
+  };
+
+  /**
+   * ## Runner Parameters
+   *
+   * More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface.
+   */
+
+  var queryString = new jasmine.QueryString({
+    getWindowLocation: function() { return window.location; }
+  });
+
+  var catchingExceptions = queryString.getParam("catch");
+  env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions);
+
+  /**
+   * ## Reporters
+   * The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any).
+   */
+  var htmlReporter = new jasmine.HtmlReporter({
+    env: env,
+    onRaiseExceptionsClick: function() { queryString.setParam("catch", !env.catchingExceptions()); },
+    getContainer: function() { return document.body; },
+    createElement: function() { return document.createElement.apply(document, arguments); },
+    createTextNode: function() { return document.createTextNode.apply(document, arguments); },
+    timer: new jasmine.Timer()
+  });
+
+  /**
+   * The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results  from JavaScript.
+   */
+  env.addReporter(jasmineInterface.jsApiReporter);
+  env.addReporter(htmlReporter);
+
+  /**
+   * Filter which specs will be run by matching the start of the full name against the `spec` query param.
+   */
+  var specFilter = new jasmine.HtmlSpecFilter({
+    filterString: function() { return queryString.getParam("spec"); }
+  });
+
+  env.specFilter = function(spec) {
+    return specFilter.matches(spec.getFullName());
+  };
+
+  /**
+   * Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack.
+   */
+  window.setTimeout = window.setTimeout;
+  window.setInterval = window.setInterval;
+  window.clearTimeout = window.clearTimeout;
+  window.clearInterval = window.clearInterval;
+
+  /**
+   * ## Execution
+   *
+   * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded.
+   */
+  var currentWindowOnload = window.onload;
+
+  window.onload = function() {
+    if (currentWindowOnload) {
+      currentWindowOnload();
+    }
+    htmlReporter.initialize();
+    env.execute();
+  };
+
+  /**
+   * Helper function for readability above.
+   */
+  function extend(destination, source) {
+    for (var property in source) destination[property] = source[property];
+    return destination;
+  }
+
+}());

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/www/assets/jasmine-2.0.0/console.js
----------------------------------------------------------------------
diff --git a/www/assets/jasmine-2.0.0/console.js b/www/assets/jasmine-2.0.0/console.js
new file mode 100755
index 0000000..33c1698
--- /dev/null
+++ b/www/assets/jasmine-2.0.0/console.js
@@ -0,0 +1,160 @@
+/*
+Copyright (c) 2008-2013 Pivotal Labs
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+function getJasmineRequireObj() {
+  if (typeof module !== "undefined" && module.exports) {
+    return exports;
+  } else {
+    window.jasmineRequire = window.jasmineRequire || {};
+    return window.jasmineRequire;
+  }
+}
+
+getJasmineRequireObj().console = function(jRequire, j$) {
+  j$.ConsoleReporter = jRequire.ConsoleReporter();
+};
+
+getJasmineRequireObj().ConsoleReporter = function() {
+
+  var noopTimer = {
+    start: function(){},
+    elapsed: function(){ return 0; }
+  };
+
+  function ConsoleReporter(options) {
+    var print = options.print,
+      showColors = options.showColors || false,
+      onComplete = options.onComplete || function() {},
+      timer = options.timer || noopTimer,
+      specCount,
+      failureCount,
+      failedSpecs = [],
+      pendingCount,
+      ansi = {
+        green: '\x1B[32m',
+        red: '\x1B[31m',
+        yellow: '\x1B[33m',
+        none: '\x1B[0m'
+      };
+
+    this.jasmineStarted = function() {
+      specCount = 0;
+      failureCount = 0;
+      pendingCount = 0;
+      print("Started");
+      printNewline();
+      timer.start();
+    };
+
+    this.jasmineDone = function() {
+      printNewline();
+      for (var i = 0; i < failedSpecs.length; i++) {
+        specFailureDetails(failedSpecs[i]);
+      }
+
+      printNewline();
+      var specCounts = specCount + " " + plural("spec", specCount) + ", " +
+        failureCount + " " + plural("failure", failureCount);
+
+      if (pendingCount) {
+        specCounts += ", " + pendingCount + " pending " + plural("spec", pendingCount);
+      }
+
+      print(specCounts);
+
+      printNewline();
+      var seconds = timer.elapsed() / 1000;
+      print("Finished in " + seconds + " " + plural("second", seconds));
+
+      printNewline();
+
+      onComplete(failureCount === 0);
+    };
+
+    this.specDone = function(result) {
+      specCount++;
+
+      if (result.status == "pending") {
+        pendingCount++;
+        print(colored("yellow", "*"));
+        return;
+      }
+
+      if (result.status == "passed") {
+        print(colored("green", '.'));
+        return;
+      }
+
+      if (result.status == "failed") {
+        failureCount++;
+        failedSpecs.push(result);
+        print(colored("red", 'F'));
+      }
+    };
+
+    return this;
+
+    function printNewline() {
+      print("\n");
+    }
+
+    function colored(color, str) {
+      return showColors ? (ansi[color] + str + ansi.none) : str;
+    }
+
+    function plural(str, count) {
+      return count == 1 ? str : str + "s";
+    }
+
+    function repeat(thing, times) {
+      var arr = [];
+      for (var i = 0; i < times; i++) {
+        arr.push(thing);
+      }
+      return arr;
+    }
+
+    function indent(str, spaces) {
+      var lines = (str || '').split("\n");
+      var newArr = [];
+      for (var i = 0; i < lines.length; i++) {
+        newArr.push(repeat(" ", spaces).join("") + lines[i]);
+      }
+      return newArr.join("\n");
+    }
+
+    function specFailureDetails(result) {
+      printNewline();
+      print(result.fullName);
+
+      for (var i = 0; i < result.failedExpectations.length; i++) {
+        var failedExpectation = result.failedExpectations[i];
+        printNewline();
+        print(indent(failedExpectation.stack, 2));
+      }
+
+      printNewline();
+    }
+  }
+
+  return ConsoleReporter;
+};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/www/assets/jasmine-2.0.0/jasmine-html.js
----------------------------------------------------------------------
diff --git a/www/assets/jasmine-2.0.0/jasmine-html.js b/www/assets/jasmine-2.0.0/jasmine-html.js
new file mode 100755
index 0000000..985d0d1
--- /dev/null
+++ b/www/assets/jasmine-2.0.0/jasmine-html.js
@@ -0,0 +1,359 @@
+/*
+Copyright (c) 2008-2013 Pivotal Labs
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+jasmineRequire.html = function(j$) {
+  j$.ResultsNode = jasmineRequire.ResultsNode();
+  j$.HtmlReporter = jasmineRequire.HtmlReporter(j$);
+  j$.QueryString = jasmineRequire.QueryString();
+  j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter();
+};
+
+jasmineRequire.HtmlReporter = function(j$) {
+
+  var noopTimer = {
+    start: function() {},
+    elapsed: function() { return 0; }
+  };
+
+  function HtmlReporter(options) {
+    var env = options.env || {},
+      getContainer = options.getContainer,
+      createElement = options.createElement,
+      createTextNode = options.createTextNode,
+      onRaiseExceptionsClick = options.onRaiseExceptionsClick || function() {},
+      timer = options.timer || noopTimer,
+      results = [],
+      specsExecuted = 0,
+      failureCount = 0,
+      pendingSpecCount = 0,
+      htmlReporterMain,
+      symbols;
+
+    this.initialize = function() {
+      htmlReporterMain = createDom("div", {className: "html-reporter"},
+        createDom("div", {className: "banner"},
+          createDom("span", {className: "title"}, "Jasmine"),
+          createDom("span", {className: "version"}, j$.version)
+        ),
+        createDom("ul", {className: "symbol-summary"}),
+        createDom("div", {className: "alert"}),
+        createDom("div", {className: "results"},
+          createDom("div", {className: "failures"})
+        )
+      );
+      getContainer().appendChild(htmlReporterMain);
+
+      symbols = find(".symbol-summary");
+    };
+
+    var totalSpecsDefined;
+    this.jasmineStarted = function(options) {
+      totalSpecsDefined = options.totalSpecsDefined || 0;
+      timer.start();
+    };
+
+    var summary = createDom("div", {className: "summary"});
+
+    var topResults = new j$.ResultsNode({}, "", null),
+      currentParent = topResults;
+
+    this.suiteStarted = function(result) {
+      currentParent.addChild(result, "suite");
+      currentParent = currentParent.last();
+    };
+
+    this.suiteDone = function(result) {
+      if (currentParent == topResults) {
+        return;
+      }
+
+      currentParent = currentParent.parent;
+    };
+
+    this.specStarted = function(result) {
+      currentParent.addChild(result, "spec");
+    };
+
+    var failures = [];
+    this.specDone = function(result) {
+      if (result.status != "disabled") {
+        specsExecuted++;
+      }
+
+      symbols.appendChild(createDom("li", {
+          className: result.status,
+          id: "spec_" + result.id,
+          title: result.fullName
+        }
+      ));
+
+      if (result.status == "failed") {
+        failureCount++;
+
+        var failure =
+          createDom("div", {className: "spec-detail failed"},
+            createDom("div", {className: "description"},
+              createDom("a", {title: result.fullName, href: specHref(result)}, result.fullName)
+            ),
+            createDom("div", {className: "messages"})
+          );
+        var messages = failure.childNodes[1];
+
+        for (var i = 0; i < result.failedExpectations.length; i++) {
+          var expectation = result.failedExpectations[i];
+          messages.appendChild(createDom("div", {className: "result-message"}, expectation.message));
+          messages.appendChild(createDom("div", {className: "stack-trace"}, expectation.stack));
+        }
+
+        failures.push(failure);
+      }
+
+      if (result.status == "pending") {
+        pendingSpecCount++;
+      }
+    };
+
+    this.jasmineDone = function() {
+      var banner = find(".banner");
+      banner.appendChild(createDom("span", {className: "duration"}, "finished in " + timer.elapsed() / 1000 + "s"));
+
+      var alert = find(".alert");
+
+      alert.appendChild(createDom("span", { className: "exceptions" },
+        createDom("label", { className: "label", 'for': "raise-exceptions" }, "raise exceptions"),
+        createDom("input", {
+          className: "raise",
+          id: "raise-exceptions",
+          type: "checkbox"
+        })
+      ));
+      var checkbox = find("input");
+
+      checkbox.checked = !env.catchingExceptions();
+      checkbox.onclick = onRaiseExceptionsClick;
+
+      if (specsExecuted < totalSpecsDefined) {
+        var skippedMessage = "Ran " + specsExecuted + " of " + totalSpecsDefined + " specs - run all";
+        alert.appendChild(
+          createDom("span", {className: "bar skipped"},
+            createDom("a", {href: "?", title: "Run all specs"}, skippedMessage)
+          )
+        );
+      }
+      var statusBarMessage = "" + pluralize("spec", specsExecuted) + ", " + pluralize("failure", failureCount);
+      if (pendingSpecCount) { statusBarMessage += ", " + pluralize("pending spec", pendingSpecCount); }
+
+      var statusBarClassName = "bar " + ((failureCount > 0) ? "failed" : "passed");
+      alert.appendChild(createDom("span", {className: statusBarClassName}, statusBarMessage));
+
+      var results = find(".results");
+      results.appendChild(summary);
+
+      summaryList(topResults, summary);
+
+      function summaryList(resultsTree, domParent) {
+        var specListNode;
+        for (var i = 0; i < resultsTree.children.length; i++) {
+          var resultNode = resultsTree.children[i];
+          if (resultNode.type == "suite") {
+            var suiteListNode = createDom("ul", {className: "suite", id: "suite-" + resultNode.result.id},
+              createDom("li", {className: "suite-detail"},
+                createDom("a", {href: specHref(resultNode.result)}, resultNode.result.description)
+              )
+            );
+
+            summaryList(resultNode, suiteListNode);
+            domParent.appendChild(suiteListNode);
+          }
+          if (resultNode.type == "spec") {
+            if (domParent.getAttribute("class") != "specs") {
+              specListNode = createDom("ul", {className: "specs"});
+              domParent.appendChild(specListNode);
+            }
+            specListNode.appendChild(
+              createDom("li", {
+                  className: resultNode.result.status,
+                  id: "spec-" + resultNode.result.id
+                },
+                createDom("a", {href: specHref(resultNode.result)}, resultNode.result.description)
+              )
+            );
+          }
+        }
+      }
+
+      if (failures.length) {
+        alert.appendChild(
+          createDom('span', {className: "menu bar spec-list"},
+            createDom("span", {}, "Spec List | "),
+            createDom('a', {className: "failures-menu", href: "#"}, "Failures")));
+        alert.appendChild(
+          createDom('span', {className: "menu bar failure-list"},
+            createDom('a', {className: "spec-list-menu", href: "#"}, "Spec List"),
+            createDom("span", {}, " | Failures ")));
+
+        find(".failures-menu").onclick = function() {
+          setMenuModeTo('failure-list');
+        };
+        find(".spec-list-menu").onclick = function() {
+          setMenuModeTo('spec-list');
+        };
+
+        setMenuModeTo('failure-list');
+
+        var failureNode = find(".failures");
+        for (var i = 0; i < failures.length; i++) {
+          failureNode.appendChild(failures[i]);
+        }
+      }
+    };
+
+    return this;
+
+    function find(selector) {
+      return getContainer().querySelector(selector);
+    }
+
+    function createDom(type, attrs, childrenVarArgs) {
+      var el = createElement(type);
+
+      for (var i = 2; i < arguments.length; i++) {
+        var child = arguments[i];
+
+        if (typeof child === 'string') {
+          el.appendChild(createTextNode(child));
+        } else {
+          if (child) {
+            el.appendChild(child);
+          }
+        }
+      }
+
+      for (var attr in attrs) {
+        if (attr == "className") {
+          el[attr] = attrs[attr];
+        } else {
+          el.setAttribute(attr, attrs[attr]);
+        }
+      }
+
+      return el;
+    }
+
+    function pluralize(singular, count) {
+      var word = (count == 1 ? singular : singular + "s");
+
+      return "" + count + " " + word;
+    }
+
+    function specHref(result) {
+      return "?spec=" + encodeURIComponent(result.fullName);
+    }
+
+    function setMenuModeTo(mode) {
+      htmlReporterMain.setAttribute("class", "html-reporter " + mode);
+    }
+  }
+
+  return HtmlReporter;
+};
+
+jasmineRequire.HtmlSpecFilter = function() {
+  function HtmlSpecFilter(options) {
+    var filterString = options && options.filterString() && options.filterString().replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
+    var filterPattern = new RegExp(filterString);
+
+    this.matches = function(specName) {
+      return filterPattern.test(specName);
+    };
+  }
+
+  return HtmlSpecFilter;
+};
+
+jasmineRequire.ResultsNode = function() {
+  function ResultsNode(result, type, parent) {
+    this.result = result;
+    this.type = type;
+    this.parent = parent;
+
+    this.children = [];
+
+    this.addChild = function(result, type) {
+      this.children.push(new ResultsNode(result, type, this));
+    };
+
+    this.last = function() {
+      return this.children[this.children.length - 1];
+    };
+  }
+
+  return ResultsNode;
+};
+
+jasmineRequire.QueryString = function() {
+  function QueryString(options) {
+
+    this.setParam = function(key, value) {
+      var paramMap = queryStringToParamMap();
+      paramMap[key] = value;
+      options.getWindowLocation().search = toQueryString(paramMap);
+    };
+
+    this.getParam = function(key) {
+      return queryStringToParamMap()[key];
+    };
+
+    return this;
+
+    function toQueryString(paramMap) {
+      var qStrPairs = [];
+      for (var prop in paramMap) {
+        qStrPairs.push(encodeURIComponent(prop) + "=" + encodeURIComponent(paramMap[prop]));
+      }
+      return "?" + qStrPairs.join('&');
+    }
+
+    function queryStringToParamMap() {
+      var paramStr = options.getWindowLocation().search.substring(1),
+        params = [],
+        paramMap = {};
+
+      if (paramStr.length > 0) {
+        params = paramStr.split('&');
+        for (var i = 0; i < params.length; i++) {
+          var p = params[i].split('=');
+          var value = decodeURIComponent(p[1]);
+          if (value === "true" || value === "false") {
+            value = JSON.parse(value);
+          }
+          paramMap[decodeURIComponent(p[0])] = value;
+        }
+      }
+
+      return paramMap;
+    }
+
+  }
+
+  return QueryString;
+};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/5b61fcb5/www/assets/jasmine-2.0.0/jasmine.css
----------------------------------------------------------------------
diff --git a/www/assets/jasmine-2.0.0/jasmine.css b/www/assets/jasmine-2.0.0/jasmine.css
new file mode 100755
index 0000000..f4d35b6
--- /dev/null
+++ b/www/assets/jasmine-2.0.0/jasmine.css
@@ -0,0 +1,55 @@
+body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
+
+.html-reporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; }
+.html-reporter a { text-decoration: none; }
+.html-reporter a:hover { text-decoration: underline; }
+.html-reporter p, .html-reporter h1, .html-reporter h2, .html-reporter h3, .html-reporter h4, .html-reporter h5, .html-reporter h6 { margin: 0; line-height: 14px; }
+.html-reporter .banner, .html-reporter .symbol-summary, .html-reporter .summary, .html-reporter .result-message, .html-reporter .spec .description, .html-reporter .spec-detail .description, .html-reporter .alert .bar, .html-reporter .stack-trace { padding-left: 9px; padding-right: 9px; }
+.html-reporter .banner .version { margin-left: 14px; }
+.html-reporter #jasmine_content { position: fixed; right: 100%; }
+.html-reporter .version { color: #aaaaaa; }
+.html-reporter .banner { margin-top: 14px; }
+.html-reporter .duration { color: #aaaaaa; float: right; }
+.html-reporter .symbol-summary { overflow: hidden; *zoom: 1; margin: 14px 0; }
+.html-reporter .symbol-summary li { display: inline-block; height: 8px; width: 14px; font-size: 16px; }
+.html-reporter .symbol-summary li.passed { font-size: 14px; }
+.html-reporter .symbol-summary li.passed:before { color: #5e7d00; content: "\02022"; }
+.html-reporter .symbol-summary li.failed { line-height: 9px; }
+.html-reporter .symbol-summary li.failed:before { color: #b03911; content: "x"; font-weight: bold; margin-left: -1px; }
+.html-reporter .symbol-summary li.disabled { font-size: 14px; }
+.html-reporter .symbol-summary li.disabled:before { color: #bababa; content: "\02022"; }
+.html-reporter .symbol-summary li.pending { line-height: 17px; }
+.html-reporter .symbol-summary li.pending:before { color: #ba9d37; content: "*"; }
+.html-reporter .exceptions { color: #fff; float: right; margin-top: 5px; margin-right: 5px; }
+.html-reporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; }
+.html-reporter .bar.failed { background-color: #b03911; }
+.html-reporter .bar.passed { background-color: #a6b779; }
+.html-reporter .bar.skipped { background-color: #bababa; }
+.html-reporter .bar.menu { background-color: #fff; color: #aaaaaa; }
+.html-reporter .bar.menu a { color: #333333; }
+.html-reporter .bar a { color: white; }
+.html-reporter.spec-list .bar.menu.failure-list, .html-reporter.spec-list .results .failures { display: none; }
+.html-reporter.failure-list .bar.menu.spec-list, .html-reporter.failure-list .summary { display: none; }
+.html-reporter .running-alert { background-color: #666666; }
+.html-reporter .results { margin-top: 14px; }
+.html-reporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; }
+.html-reporter.showDetails .summaryMenuItem:hover { text-decoration: underline; }
+.html-reporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; }
+.html-reporter.showDetails .summary { display: none; }
+.html-reporter.showDetails #details { display: block; }
+.html-reporter .summaryMenuItem { font-weight: bold; text-decoration: underline; }
+.html-reporter .summary { margin-top: 14px; }
+.html-reporter .summary ul { list-style-type: none; margin-left: 14px; padding-top: 0; padding-left: 0; }
+.html-reporter .summary ul.suite { margin-top: 7px; margin-bottom: 7px; }
+.html-reporter .summary li.passed a { color: #5e7d00; }
+.html-reporter .summary li.failed a { color: #b03911; }
+.html-reporter .summary li.pending a { color: #ba9d37; }
+.html-reporter .description + .suite { margin-top: 0; }
+.html-reporter .suite { margin-top: 14px; }
+.html-reporter .suite a { color: #333333; }
+.html-reporter .failures .spec-detail { margin-bottom: 28px; }
+.html-reporter .failures .spec-detail .description { background-color: #b03911; }
+.html-reporter .failures .spec-detail .description a { color: white; }
+.html-reporter .result-message { padding-top: 14px; color: #333333; white-space: pre; }
+.html-reporter .result-message span.result { display: block; }
+.html-reporter .stack-trace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; }