diff --git a/test/basic.html b/test/basic.html
index 6707199a..347aa136 100644
--- a/test/basic.html
+++ b/test/basic.html
@@ -8,13 +8,14 @@
-
+
+
@@ -54,8 +55,9 @@
+
@@ -30,7 +31,10 @@
(function () {
'use strict';
- suite('basic', () => {
+ // get dom Type from helpers.js
+ const domType = getDomType(); //eslint-disable-line no-undef
+
+ suite('basic' + domType, () => {
let omnitable,
column,
data;
diff --git a/test/fit-dropdowns.html b/test/fit-dropdowns.html
index 40447d74..61c7243f 100644
--- a/test/fit-dropdowns.html
+++ b/test/fit-dropdowns.html
@@ -8,6 +8,7 @@
+
@@ -38,6 +39,10 @@
+
@@ -74,7 +75,10 @@
(function () {
'use strict';
- suite('id', () => {
+ // get dom Type from helpers.js
+ const domType = getDomType(); //eslint-disable-line no-undef
+
+ suite('id' + domType, () => {
let omnitable,
data;
@@ -130,7 +134,7 @@
});
});
- suite('bool', () => {
+ suite('bool' + domType, () => {
let omnitable,
data;
@@ -170,49 +174,48 @@
}, 120);
});
});
- }());
- suite('amount', () => {
- let omnitable,
- data;
-
- setup(done => {
- omnitable = fixture('amount');
-
- const onVisible = () => {
- const columns = omnitable.visibleColumns;
- if (Array.isArray(columns) && columns.length > 0) {
- omnitable.removeEventListener('visible-columns-changed', onVisible);
- Polymer.Base.async(done, 120);
- }
- };
-
- data = Cosmoz.TableDemoBehavior.generateTableDemoData(10, 11, 25);
- omnitable.addEventListener('visible-columns-changed', onVisible);
- omnitable.data = data;
- omnitable.notifyResize();
- });
+ suite('amount' + domType, () => {
+ let omnitable,
+ data;
- test('setting groupOn property to "amount" updates property groupOnColumn', done => {
- omnitable.groupOn = 'amount';
+ setup(done => {
+ omnitable = fixture('amount');
- omnitable.notifyResize();
- const verifyColumn = () => {
- const groupOnColumn = omnitable.groupOnColumn;
- if (groupOnColumn == null) {
- Polymer.Base.async(verifyColumn, 50);
- } else {
- assert.equal(typeof groupOnColumn, 'object');
- assert.equal(groupOnColumn.is, 'cosmoz-omnitable-column-amount');
- assert.equal(groupOnColumn.name, 'amount', 'Expected "groupOnColumn" to be the column that matches "groupOn" value');
- assert.equal(groupOnColumn, omnitable.columns[0]);
- done();
- }
- };
- Polymer.Base.async(verifyColumn, 50);
- });
- });
+ const onVisible = () => {
+ const columns = omnitable.visibleColumns;
+ if (Array.isArray(columns) && columns.length > 0) {
+ omnitable.removeEventListener('visible-columns-changed', onVisible);
+ Polymer.Base.async(done, 120);
+ }
+ };
+
+ data = Cosmoz.TableDemoBehavior.generateTableDemoData(10, 11, 25);
+ omnitable.addEventListener('visible-columns-changed', onVisible);
+ omnitable.data = data;
+ omnitable.notifyResize();
+ });
+ test('setting groupOn property to "amount" updates property groupOnColumn', done => {
+ omnitable.groupOn = 'amount';
+ omnitable.notifyResize();
+ const verifyColumn = () => {
+ const groupOnColumn = omnitable.groupOnColumn;
+ if (groupOnColumn == null) {
+ Polymer.Base.async(verifyColumn, 50);
+ } else {
+ assert.equal(typeof groupOnColumn, 'object');
+ assert.equal(groupOnColumn.is, 'cosmoz-omnitable-column-amount');
+ assert.equal(groupOnColumn.name, 'amount', 'Expected "groupOnColumn" to be the column that matches "groupOn" value');
+ assert.equal(groupOnColumn, omnitable.columns[0]);
+ done();
+ }
+ };
+ Polymer.Base.async(verifyColumn, 50);
+ });
+ });
+
+ }());