From 5ee7daf2868735c5d6d7ed09e5916b0ffbde477a Mon Sep 17 00:00:00 2001 From: Cristian Necula Date: Tue, 19 Mar 2019 10:56:09 +0200 Subject: [PATCH] (tests) tests for OmnitableRepeaterMixin --- cosmoz-omnitable-repeater-mixin.html | 2 +- .../basic-column.html} | 6 +- test/helpers/fixtures/basic-row.html | 72 ++++++ test/index.html | 1 + test/repeater.html | 215 ++++++++++++++++++ test/templatize.html | 2 +- 6 files changed, 293 insertions(+), 5 deletions(-) rename test/helpers/{basic-column-fixture.html => fixtures/basic-column.html} (78%) create mode 100644 test/helpers/fixtures/basic-row.html create mode 100644 test/repeater.html diff --git a/cosmoz-omnitable-repeater-mixin.html b/cosmoz-omnitable-repeater-mixin.html index 8653f2cb..9eeb6939 100644 --- a/cosmoz-omnitable-repeater-mixin.html +++ b/cosmoz-omnitable-repeater-mixin.html @@ -66,7 +66,7 @@ */ stopTrackingColumns() { if (!this._columnsObserver) { - throw new Error('The columns were not tracked.'); + throw new Error('The columns are not tracked.'); } this._removePropertyEffect('columns', this.PROPERTY_EFFECT_TYPES.OBSERVE, this._columnsObserver); diff --git a/test/helpers/basic-column-fixture.html b/test/helpers/fixtures/basic-column.html similarity index 78% rename from test/helpers/basic-column-fixture.html rename to test/helpers/fixtures/basic-column.html index b21680c2..4385c041 100644 --- a/test/helpers/basic-column-fixture.html +++ b/test/helpers/fixtures/basic-column.html @@ -6,15 +6,15 @@ static get template() { return Polymer.html` -