http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/lib/wp7/plugin/wp7/console.js ---------------------------------------------------------------------- diff --git a/lib/wp7/plugin/wp7/console.js b/lib/wp7/plugin/wp7/console.js index f7d92fd..20197d5 100644 --- a/lib/wp7/plugin/wp7/console.js +++ b/lib/wp7/plugin/wp7/console.js @@ -1,3 +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. + * +*/ + var exec = require('cordova/exec'), channel = require('cordova/channel'); @@ -21,4 +42,4 @@ window.onerror = function(msg,fileName,line) { debugConsole.error(msg + " file:" + fileName + " Line:" + line); }; -module.exports = debugConsole; \ No newline at end of file +module.exports = debugConsole;
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/reporter.js ---------------------------------------------------------------------- diff --git a/test/reporter.js b/test/reporter.js index 4fe6c89..59d0a5e 100644 --- a/test/reporter.js +++ b/test/reporter.js @@ -1,4 +1,25 @@ /* + * + * 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. + * +*/ + +/* From the jasmine-node project: https://github.com/mhevery/jasmine-node http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/runner.js ---------------------------------------------------------------------- diff --git a/test/runner.js b/test/runner.js index 9d1e4e6..7f3aeee 100644 --- a/test/runner.js +++ b/test/runner.js @@ -1,3 +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. + * +*/ + var fs = require('fs'), util = require('util'), _path = require('path'), http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/suite.html ---------------------------------------------------------------------- diff --git a/test/suite.html b/test/suite.html index ab45b07..881ba00 100644 --- a/test/suite.html +++ b/test/suite.html @@ -1,3 +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. + +--> + <!DOCTYPE HTML> <html> <head> http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.accelerometer.js ---------------------------------------------------------------------- diff --git a/test/test.accelerometer.js b/test/test.accelerometer.js index 085fa74..b2e0d46 100644 --- a/test/test.accelerometer.js +++ b/test/test.accelerometer.js @@ -1,3 +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. + * +*/ + describe("accelerometer", function () { var accelerometer = require("cordova/plugin/accelerometer"), exec = require('cordova/exec'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.battery.js ---------------------------------------------------------------------- diff --git a/test/test.battery.js b/test/test.battery.js index 8ac87bd..6216e7e 100644 --- a/test/test.battery.js +++ b/test/test.battery.js @@ -1,3 +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. + * +*/ + describe("battery", function () { var battery = require("cordova/plugin/battery"), exec = require("cordova/exec"); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.builder.js ---------------------------------------------------------------------- diff --git a/test/test.builder.js b/test/test.builder.js index 96c78ec..24ed44e 100644 --- a/test/test.builder.js +++ b/test/test.builder.js @@ -1,3 +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. + * +*/ + describe("builder", function () { var builder = require('cordova/builder'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.camera.js ---------------------------------------------------------------------- diff --git a/test/test.camera.js b/test/test.camera.js index 9d26c41..26dc4e4 100644 --- a/test/test.camera.js +++ b/test/test.camera.js @@ -1,3 +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. + * +*/ + describe("camera", function () { var camera = require('cordova/plugin/Camera'), constants = require('cordova/plugin/CameraConstants'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.channel.js ---------------------------------------------------------------------- diff --git a/test/test.channel.js b/test/test.channel.js index ae81527..dc9e661 100644 --- a/test/test.channel.js +++ b/test/test.channel.js @@ -1,3 +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. + * +*/ + describe("channel", function () { var channel = require('cordova/channel'), c; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.compass.js ---------------------------------------------------------------------- diff --git a/test/test.compass.js b/test/test.compass.js index 5d0b8cc..30a7ff9 100644 --- a/test/test.compass.js +++ b/test/test.compass.js @@ -1,3 +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. + * +*/ + describe("compass", function () { var compass = require('cordova/plugin/compass'), utils = require('cordova/utils'), http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.console-via-logger.js ---------------------------------------------------------------------- diff --git a/test/test.console-via-logger.js b/test/test.console-via-logger.js index 08b4366..71d9a87 100644 --- a/test/test.console-via-logger.js +++ b/test/test.console-via-logger.js @@ -1,3 +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. + * +*/ + describe("console-via-logger", function () { var cordova = require('cordova') http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.contact.js ---------------------------------------------------------------------- diff --git a/test/test.contact.js b/test/test.contact.js index fe8919b..58662a0 100644 --- a/test/test.contact.js +++ b/test/test.contact.js @@ -1,3 +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. + * +*/ + describe("Contact", function () { var Contact = require('cordova/plugin/Contact'), exec = require('cordova/exec'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.contacts.js ---------------------------------------------------------------------- diff --git a/test/test.contacts.js b/test/test.contacts.js index 2f54018..79acf67 100644 --- a/test/test.contacts.js +++ b/test/test.contacts.js @@ -1,3 +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. + * +*/ + describe("contacts", function () { var contacts = require('cordova/plugin/contacts'), exec = require('cordova/exec'), http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.filetransfer.js ---------------------------------------------------------------------- diff --git a/test/test.filetransfer.js b/test/test.filetransfer.js index cb3d203..6c604b1 100644 --- a/test/test.filetransfer.js +++ b/test/test.filetransfer.js @@ -1,3 +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. + * +*/ + describe("FileTransfer", function() { var FileTransfer = new (require('cordova/plugin/FileTransfer'))(); describe("download", function() { http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.geolocation.js ---------------------------------------------------------------------- diff --git a/test/test.geolocation.js b/test/test.geolocation.js index 070968e..4eef59b 100644 --- a/test/test.geolocation.js +++ b/test/test.geolocation.js @@ -1,3 +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. + * +*/ + describe("geolocation", function () { var geo = require('cordova/plugin/geolocation'), Position = require('cordova/plugin/Position'), http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.logger.js ---------------------------------------------------------------------- diff --git a/test/test.logger.js b/test/test.logger.js index 31c0d55..c576807 100644 --- a/test/test.logger.js +++ b/test/test.logger.js @@ -1,3 +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. + * +*/ + var cordova = require('cordova') var logger = require('cordova/plugin/logger') var exec = require("cordova/exec") http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.media.js ---------------------------------------------------------------------- diff --git a/test/test.media.js b/test/test.media.js index 4d21925..941aa63 100644 --- a/test/test.media.js +++ b/test/test.media.js @@ -1,3 +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. + * +*/ + describe("media", function () { describe("MediaError object + error codes", function () { var MediaError = require('cordova/plugin/MediaError'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.network.js ---------------------------------------------------------------------- diff --git a/test/test.network.js b/test/test.network.js index ee9d4c7..b6e65f7 100644 --- a/test/test.network.js +++ b/test/test.network.js @@ -1,3 +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. + * +*/ + describe("network", function () { var network, exec = require('cordova/exec'), http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.notification.js ---------------------------------------------------------------------- diff --git a/test/test.notification.js b/test/test.notification.js index b78edd1..1ab5ef5 100644 --- a/test/test.notification.js +++ b/test/test.notification.js @@ -1,3 +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. + * +*/ + describe("notification", function () { var notification = require('cordova/plugin/notification'), exec = require('cordova/exec'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.require.js ---------------------------------------------------------------------- diff --git a/test/test.require.js b/test/test.require.js index b79dec4..b2e804d 100644 --- a/test/test.require.js +++ b/test/test.require.js @@ -1,3 +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. + * +*/ + describe("require + define", function () { it("exist off of cordova", function () { var cordova = require('cordova'); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/68e3e274/test/test.utils.js ---------------------------------------------------------------------- diff --git a/test/test.utils.js b/test/test.utils.js index 90c006b..093ae65 100644 --- a/test/test.utils.js +++ b/test/test.utils.js @@ -1,3 +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. + * +*/ + describe("utils", function () { var utils = require('cordova/utils');