From 8d70628c96ae72eff6eebb451d26fc9ed6b58b0e Mon Sep 17 00:00:00 2001 From: Sam Thorogood Date: Wed, 23 Aug 2017 14:17:31 +0200 Subject: [PATCH] copyright headers (#72) --- middleware/src/middleware.js | 16 ++++++++++++++++ middleware/test/middleware-test.js | 16 ++++++++++++++++ src/cache.js | 16 ++++++++++++++++ src/index.html | 15 +++++++++++++++ src/main.js | 16 ++++++++++++++++ src/renderer.js | 16 ++++++++++++++++ test/app-test.js | 16 ++++++++++++++++ test/cache-test.js | 16 ++++++++++++++++ test/resources/basic-script.html | 15 +++++++++++++++ test/resources/custom-element.html | 15 +++++++++++++++ test/resources/explicit-render-event.html | 15 +++++++++++++++ .../http-meta-status-code-multiple.html | 15 +++++++++++++++ test/resources/http-meta-status-code.html | 15 +++++++++++++++ test/resources/include-script.html | 15 +++++++++++++++ test/resources/inject-element-after-load.js | 16 ++++++++++++++++ test/resources/inject-element.js | 16 ++++++++++++++++ test/resources/script-after-load.html | 15 +++++++++++++++ test/resources/shadow-dom-no-polyfill.html | 15 +++++++++++++++ test/resources/shadow-dom-polyfill-all.html | 15 +++++++++++++++ test/resources/shadow-dom-polyfill-loader.html | 15 +++++++++++++++ 20 files changed, 309 insertions(+) diff --git a/middleware/src/middleware.js b/middleware/src/middleware.js index 1ab3574d..b11c7694 100644 --- a/middleware/src/middleware.js +++ b/middleware/src/middleware.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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'; const request = require('request'); diff --git a/middleware/test/middleware-test.js b/middleware/test/middleware-test.js index 0e9403e8..274bd272 100644 --- a/middleware/test/middleware-test.js +++ b/middleware/test/middleware-test.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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'; const express = require('express'); diff --git a/src/cache.js b/src/cache.js index 9727660b..c85ed908 100644 --- a/src/cache.js +++ b/src/cache.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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'; const datastore = require('@google-cloud/datastore')(); diff --git a/src/index.html b/src/index.html index 9bf0a5a4..b5a22c02 100644 --- a/src/index.html +++ b/src/index.html @@ -1,3 +1,18 @@ + diff --git a/src/main.js b/src/main.js index 6a94df16..a03ef832 100644 --- a/src/main.js +++ b/src/main.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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'; const assert = require('assert'); diff --git a/src/renderer.js b/src/renderer.js index 678a8fbe..9358f700 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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'; const CDP = require('chrome-remote-interface'); diff --git a/test/app-test.js b/test/app-test.js index 0d0932d6..3e00361d 100644 --- a/test/app-test.js +++ b/test/app-test.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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'; const request = require('supertest'); diff --git a/test/cache-test.js b/test/cache-test.js index b52a1c73..ee5e02fb 100644 --- a/test/cache-test.js +++ b/test/cache-test.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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'; const test = require('ava'); diff --git a/test/resources/basic-script.html b/test/resources/basic-script.html index f9dd6513..920bf44b 100644 --- a/test/resources/basic-script.html +++ b/test/resources/basic-script.html @@ -1,3 +1,18 @@ + diff --git a/test/resources/inject-element-after-load.js b/test/resources/inject-element-after-load.js index e94341ad..ebca5a25 100644 --- a/test/resources/inject-element-after-load.js +++ b/test/resources/inject-element-after-load.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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. + */ + window.onload = function() { var element = document.createElement('div'); element.textContent = 'injected' + 'Element'; diff --git a/test/resources/inject-element.js b/test/resources/inject-element.js index af9b18bf..c4e1ed4b 100644 --- a/test/resources/inject-element.js +++ b/test/resources/inject-element.js @@ -1,3 +1,19 @@ +/* + * Copyright 2017 Google Inc. All rights reserved. + * + * Licensed 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 element = document.createElement('div'); element.textContent = 'injectedElement'; document.body.appendChild(element); \ No newline at end of file diff --git a/test/resources/script-after-load.html b/test/resources/script-after-load.html index bbd510a8..fd62d21d 100644 --- a/test/resources/script-after-load.html +++ b/test/resources/script-after-load.html @@ -1,3 +1,18 @@ +