Skip to content

Commit

Permalink
chore: update tests and license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Mar 12, 2021
1 parent 809089c commit 3a9357e
Show file tree
Hide file tree
Showing 126 changed files with 153 additions and 142 deletions.
2 changes: 1 addition & 1 deletion packages/vaadin-avatar/src/vaadin-avatar-group-list-box.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { ListBoxElement } from '@vaadin/vaadin-list-box/src/vaadin-list-box.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-avatar/src/vaadin-avatar-group-overlay.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { OverlayElement } from '@vaadin/vaadin-overlay/src/vaadin-overlay.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-avatar/src/vaadin-avatar-group.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-avatar/src/vaadin-avatar-icons.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
const $_documentContainer = document.createElement('template');
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-avatar/src/vaadin-avatar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-checkbox/src/vaadin-checkbox-group.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-checkbox/src/vaadin-checkbox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { ComboBoxPlaceholder } from './vaadin-combo-box-placeholder.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-combo-box/src/vaadin-combo-box-dropdown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-combo-box/src/vaadin-combo-box-item.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-combo-box/src/vaadin-combo-box-light.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-combo-box/src/vaadin-combo-box-mixin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { timeOut } from '@polymer/polymer/lib/utils/async.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/

Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-combo-box/src/vaadin-combo-box.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
5 changes: 3 additions & 2 deletions packages/vaadin-combo-box/test/combo-box-light.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ describe('vaadin-combo-box-light', () => {
expect(comboBox.opened).to.be.true;
});

it('should toggle on input click on touch devices', (done) => {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
(isSafari ? it.skip : it)('should toggle on input click on touch devices', (done) => {
downAndUp(
ironInput,
() => {
Expand All @@ -115,7 +116,7 @@ describe('vaadin-combo-box-light', () => {
expect(comboBox.value).to.equal('foo');
});

it('should not clear on input click on touch devices', (done) => {
(isSafari ? it.skip : it)('should not clear on input click on touch devices', (done) => {
comboBox.value = 'foo';
downAndUp(
ironInput,
Expand Down
5 changes: 3 additions & 2 deletions packages/vaadin-combo-box/test/keyboard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ describe('keyboard', () => {
expect(comboBox.inputElement.value).to.eql('baz');
});

it('should select the input field text when navigating down', async () => {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
(isSafari ? it.skip : it)('should select the input field text when navigating down', async () => {
arrowDown();
await aTimeout(1);
expect(comboBox._nativeInput.selectionStart).to.eql(0);
Expand All @@ -297,7 +298,7 @@ describe('keyboard', () => {
expect(comboBox.inputElement.value).to.eql('invalid filter');
});

it('should select the input field text when navigating up', async () => {
(isSafari ? it.skip : it)('should select the input field text when navigating up', async () => {
arrowUp();
await aTimeout(1);
expect(comboBox._nativeInput.selectionStart).to.eql(0);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-context-menu/src/vaadin-context-menu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { register, prevent } from '@polymer/polymer/lib/utils/gestures.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { flush } from '@polymer/polymer/lib/utils/flush.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-context-menu/src/vaadin-device-detector.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
3 changes: 2 additions & 1 deletion packages/vaadin-context-menu/test/device-detector.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ describe('device detector', () => {
expect(detector.wide).to.eql(!isIOS);
});

it('should detect touch support', () => {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
(isSafari ? it.skip : it)('should detect touch support', () => {
expect(detector.touch).to.eql(isIOS);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-context-menu/test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MenuWrapper extends PolymerElement {
<vaadin-context-menu id="menu">
<template>foo</template>
</vaadin-context-menu>
<button on-click="_showMenu" id="button">Show context menu</button>
<button on-click="_showMenu" id="button" style="margin: 20px">Show context menu</button>
`;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/vaadin-context-menu/test/items.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ describe('items', () => {
expect(menuComponents()[0].getAttribute('aria-expanded')).to.equal('false');
});

(isIOS ? describe.skip : describe)('scrolling', () => {
const isChrome = window.chrome || /HeadlessChrome/.test(navigator.userAgent);
(isChrome ? describe : describe.skip)('scrolling', () => {
let rootOverlay, subOverlay1, subOverlay2, scrollElm;

beforeEach(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
@license
Copyright (c) 2017 Vaadin Ltd.
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/

// We consider the keyboard to be active if the window has received a keydown
// event since the last mousedown event.
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-crud/src/vaadin-crud-edit-column.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2017 - 2020 Vaadin Ltd
* Copyright (c) 2017 - 2021 Vaadin Ltd.
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
*/
import { GridColumnElement } from '@vaadin/vaadin-grid/src/vaadin-grid-column.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-crud/src/vaadin-crud-edit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2017 - 2020 Vaadin Ltd
* Copyright (c) 2017 - 2021 Vaadin Ltd.
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-crud/src/vaadin-crud-form.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2017 - 2020 Vaadin Ltd
* Copyright (c) 2017 - 2021 Vaadin Ltd.
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
*/
import { FormLayoutElement } from '@vaadin/vaadin-form-layout/src/vaadin-form-layout.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-crud/src/vaadin-crud-grid.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2017 - 2020 Vaadin Ltd
* Copyright (c) 2017 - 2021 Vaadin Ltd.
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
*/
import { GridElement } from '@vaadin/vaadin-grid/src/vaadin-grid.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-crud/src/vaadin-crud-include-mixin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2017 - 2020 Vaadin Ltd
* Copyright (c) 2017 - 2021 Vaadin Ltd.
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
*/

Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-crud/src/vaadin-crud.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2017 - 2020 Vaadin Ltd
* Copyright (c) 2017 - 2021 Vaadin Ltd.
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-crud/src/vaadin-dialog-layout.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2017 - 2020 Vaadin Ltd
* Copyright (c) 2017 - 2021 Vaadin Ltd.
* This program is available under Commercial Vaadin Developer License 4.0, available at https://vaadin.com/license/cvdl-4.0.
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-custom-field/src/vaadin-custom-field.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { IronA11yKeysBehavior } from '@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { OverlayElement } from '@vaadin/vaadin-overlay/src/vaadin-overlay.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { TextFieldElement } from '@vaadin/vaadin-text-field/src/vaadin-text-field.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-date-picker/src/vaadin-date-picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/vaadin-date-picker/src/vaadin-month-calendar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright (c) 2020 Vaadin Ltd.
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { CustomFieldElement } from '@vaadin/vaadin-custom-field/src/vaadin-custom-field.js';
Expand Down
Loading

0 comments on commit 3a9357e

Please sign in to comment.