diff --git a/cosmoz-omnitable-column-date-behavior.html b/cosmoz-omnitable-column-date-behavior.html index fb7babd3..f7ffd955 100644 --- a/cosmoz-omnitable-column-date-behavior.html +++ b/cosmoz-omnitable-column-date-behavior.html @@ -7,16 +7,12 @@ properties: { max: { type: Date, - value() { - return new Date('2100-01-01'); - } + value: null }, min: { type: Date, - value() { - return new Date('1970-01-01'); - } + value: null }, _filterText: { diff --git a/cosmoz-omnitable-column-datetime.html b/cosmoz-omnitable-column-datetime.html index f36ba992..ec1a12bf 100644 --- a/cosmoz-omnitable-column-datetime.html +++ b/cosmoz-omnitable-column-datetime.html @@ -47,20 +47,6 @@

[[ title ]]

value: 1 }, - max: { - type: Date, - value() { - return new Date(Date.UTC(2100, 11, 31, 20, 59, 999)); - } - }, - - min: { - type: Date, - value() { - return new Date(Date.UTC(1970, 0, 1, 0, 0, 0)); - } - }, - width: { type: String, value: '210px' diff --git a/package.json b/package.json index 60fee1a0..e2e71735 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "start": "polymer serve -o", "postinstall": "polymer install --variants", "lint": "eslint --cache --ext .js,.html . && polymer lint cosmoz-*.html", - "test": "polymer test", + "test": "TZ=Europe/Bucharest polymer test", "analyze": "polymer analyze --input cosmoz-*.html > analysis.json" }, "repository": { diff --git a/test/index.html b/test/index.html index da73fe1e..763703ef 100644 --- a/test/index.html +++ b/test/index.html @@ -11,7 +11,9 @@ var pages = [ 'basic.html', 'hash-param.html', - 'xlsx-export.html' + 'xlsx-export.html', + 'range.html', + 'range-date.html' ], suites = [], i; diff --git a/test/range-date.html b/test/range-date.html new file mode 100644 index 00000000..f5a88375 --- /dev/null +++ b/test/range-date.html @@ -0,0 +1,374 @@ + + + + cosmoz-omnitable range tests for date, datetime, time + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/range.html b/test/range.html new file mode 100644 index 00000000..0197ed10 --- /dev/null +++ b/test/range.html @@ -0,0 +1,304 @@ + + + + cosmoz-omnitable range tests for number and amount + + + + + + + + + + + + + + + + + + + + + +