Skip to content

Commit

Permalink
test: merge Polymer and Lit test files into a single file (#8605)
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen authored Jan 31, 2025
1 parent e093542 commit 9e0c949
Show file tree
Hide file tree
Showing 414 changed files with 227 additions and 731 deletions.
2 changes: 0 additions & 2 deletions packages/accordion/test/accordion-lit.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/accordion/test/accordion-panel-lit.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/accordion/test/accordion-panel-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect } from '@vaadin/chai-plugins';
import { sendKeys } from '@vaadin/test-runner-commands';
import { click, fixtureSync, nextRender, nextUpdate } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-accordion-panel.js';

describe('vaadin-accordion-panel', () => {
let panel;
Expand Down
2 changes: 0 additions & 2 deletions packages/accordion/test/accordion-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
nextUpdate,
} from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-accordion.js';

describe('vaadin-accordion', () => {
let accordion, heading;
Expand Down
2 changes: 0 additions & 2 deletions packages/avatar/test/avatar-lit.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/avatar/test/avatar-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, focusin, focusout, mousedown, nextUpdate, oneEvent, tabKeyDown } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-avatar.js';
import '@vaadin/tooltip/vaadin-tooltip.js';
import { Tooltip } from '@vaadin/tooltip';

Expand Down
2 changes: 0 additions & 2 deletions packages/checkbox-group/test/checkbox-group-lit.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/checkbox-group/test/checkbox-group-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect } from '@vaadin/chai-plugins';
import { sendKeys } from '@vaadin/test-runner-commands';
import { fixtureSync, nextFrame } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-checkbox-group.js';

describe('vaadin-checkbox-group', () => {
let group, checkboxes;
Expand Down
2 changes: 0 additions & 2 deletions packages/checkbox-group/test/validation-lit.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/checkbox-group/test/validation-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect } from '@vaadin/chai-plugins';
import { sendKeys } from '@vaadin/test-runner-commands';
import { fixtureSync, nextFrame, nextRender, nextUpdate } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-checkbox-group.js';

describe('validation', () => {
let group, validateSpy;
Expand Down
2 changes: 0 additions & 2 deletions packages/checkbox/test/checkbox-lit.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/checkbox/test/checkbox-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect } from '@vaadin/chai-plugins';
import { resetMouse, sendKeys, sendMouse } from '@vaadin/test-runner-commands';
import { fixtureSync, mousedown, mouseup, nextFrame, nextRender, nextUpdate } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-checkbox.js';

describe('checkbox', () => {
let checkbox, input, label, link;
Expand Down
2 changes: 0 additions & 2 deletions packages/checkbox/test/validation-lit.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/checkbox/test/validation-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect } from '@vaadin/chai-plugins';
import { sendKeys } from '@vaadin/test-runner-commands';
import { fixtureSync, nextFrame, nextRender, nextUpdate } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-checkbox.js';

describe('validation', () => {
let checkbox, validateSpy;
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/aria-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/aria-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { expect } from '@vaadin/chai-plugins';
import { arrowDownKeyDown, escKeyDown, fixtureSync, nextFrame, nextRender } from '@vaadin/testing-helpers';
import './not-animated-styles.js';
import '../src/vaadin-combo-box.js';
import { getAllItems } from './helpers.js';

describe('ARIA', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/basic-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/basic-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextRender, outsideClick } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { getViewportItems, setInputValue } from './helpers.js';

describe('basic features', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/combo-box-light-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/combo-box-light-polymer.test.js

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { expect } from '@vaadin/chai-plugins';
import { sendKeys } from '@vaadin/test-runner-commands';
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box-light.js';

describe('vaadin-combo-box-light - validation', () => {
let comboBox, input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
touchstart,
} from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box-light.js';
import '@vaadin/text-field/vaadin-text-field.js';
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
import { isTouch } from '@vaadin/component-base/src/browser-utils.js';
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextFrame, nextRender } from '@vaadin/testing-helpers';
import '@vaadin/text-field/vaadin-text-field.js';
import '../src/vaadin-combo-box.js';
import '../src/vaadin-combo-box-light.js';
import { ComboBoxPlaceholder } from '../src/vaadin-combo-box-placeholder.js';
import { flushComboBox, getViewportItems, getVisibleItemsCount, makeItems, scrollToIndex } from './helpers.js';

Expand Down
5 changes: 0 additions & 5 deletions packages/combo-box/test/data-provider-filtering-lit.test.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { expect } from '@vaadin/chai-plugins';
import { aTimeout, fixtureSync, nextRender } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '@vaadin/text-field/vaadin-text-field.js';
import '../vaadin-combo-box-light.js';
import '../vaadin-combo-box.js';
import { setInputValue } from './helpers.js';

const TEMPLATES = {
Expand Down
6 changes: 0 additions & 6 deletions packages/combo-box/test/data-provider-lit.test.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/combo-box/test/data-provider-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { expect } from '@vaadin/chai-plugins';
import { arrowDownKeyDown, aTimeout, enterKeyDown, fixtureSync, nextFrame, nextRender } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import './data-provider-styles.js';
import '@vaadin/text-field/vaadin-text-field.js';
import '../vaadin-combo-box-light.js';
import '../vaadin-combo-box.js';
import { ComboBoxPlaceholder } from '../src/vaadin-combo-box-placeholder.js';
import {
clickItem,
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/events-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/events-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, focusout, nextRender, outsideClick } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { clickItem, setInputValue } from './helpers.js';

describe('events', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/external-filtering-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/external-filtering-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { expect } from '@vaadin/chai-plugins';
import { aTimeout, enter, fixtureSync, nextRender } from '@vaadin/testing-helpers';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { getAllItems, getFocusedItemIndex, setInputValue } from './helpers.js';

describe('external filtering', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/interactions-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/interactions-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {
touchstart,
} from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { isTouch } from '@vaadin/component-base/src/browser-utils.js';
import { getFirstItem, setInputValue } from './helpers.js';

Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/internal-filtering-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/internal-filtering-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextRender, outsideClick } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { ComboBoxPlaceholder } from '../src/vaadin-combo-box-placeholder.js';
import { getAllItems, getFocusedItemIndex, getViewportItems, makeItems, onceOpened, setInputValue } from './helpers.js';

Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/item-class-name-generator-lit.test.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { getAllItems } from './helpers.js';

describe('itemClassNameGenerator', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/item-renderer-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/item-renderer-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { getAllItems, getFirstItem, setInputValue } from './helpers.js';

describe('item renderer', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/keyboard-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/keyboard-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
nextRender,
} from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../src/vaadin-combo-box.js';
import { getViewportItems, getVisibleItemsCount, scrollToIndex, setInputValue } from './helpers.js';

describe('keyboard', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/lit-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/lit-polymer.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/lit-renderer-directives-lit.test.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextFrame } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { html, render } from 'lit';
import { comboBoxRenderer } from '../lit.js';
import { flushComboBox, getAllItems } from './helpers.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextFrame, nextRender } from '@vaadin/testing-helpers';
import './not-animated-styles.js';
import '../vaadin-combo-box.js';
import { html, LitElement, render } from 'lit';
import { getViewportItems } from './helpers.js';

Expand Down
3 changes: 0 additions & 3 deletions packages/combo-box/test/object-values-lit.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/combo-box/test/object-values-polymer.test.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { expect } from '@vaadin/chai-plugins';
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import './not-animated-styles.js';
import '../src/vaadin-combo-box.js';
import { clickItem, getFirstItem, getViewportItems } from './helpers.js';

describe('object values', () => {
Expand Down
Loading

0 comments on commit 9e0c949

Please sign in to comment.