cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject spec commit: Add a dummy module to echo plugin to ensure it's not run on start-up
Date Tue, 29 Apr 2014 17:07:08 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master ff3a26a77 -> 769421fe0


Add a dummy module to echo plugin to ensure it's not run on start-up


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/769421fe
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/769421fe
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/769421fe

Branch: refs/heads/master
Commit: 769421fe03f32d8850c234395addbaab0ead22f6
Parents: ff3a26a
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Apr 29 13:03:35 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Apr 29 13:03:53 2014 -0400

----------------------------------------------------------------------
 cordova-plugin-echo/plugin.xml          |  2 ++
 cordova-plugin-echo/www/does-not-run.js | 24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/769421fe/cordova-plugin-echo/plugin.xml
----------------------------------------------------------------------
diff --git a/cordova-plugin-echo/plugin.xml b/cordova-plugin-echo/plugin.xml
index 3279e79..b4d1644 100644
--- a/cordova-plugin-echo/plugin.xml
+++ b/cordova-plugin-echo/plugin.xml
@@ -5,6 +5,8 @@
       version="0.1.0">
     <name>Echo</name>
 
+    <js-module src="www/does-not-run.js" name="does-not-run" />
+
     <js-module src="www/echo.js" name="echo">
         <clobbers target="cordova.echo" />
     </js-module>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/769421fe/cordova-plugin-echo/www/does-not-run.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-echo/www/does-not-run.js b/cordova-plugin-echo/www/does-not-run.js
new file mode 100644
index 0000000..2043c7d
--- /dev/null
+++ b/cordova-plugin-echo/www/does-not-run.js
@@ -0,0 +1,24 @@
+/*
+ *
+ * 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.
+ *
+*/
+
+
+// Test that modules are not run on start-up unless they are have <clobbers>, <merges>,or
<runs>
+alert('I shouldn\'t be run on start-up');


Mime
View raw message