From c86070212c7316585e00129e2b1f8045fe5e3db2 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 21 Jan 2015 23:28:24 -0800 Subject: Release version 0.2-snapshot. --- vaadin-grid/test/common.js | 86 ++++ vaadin-grid/test/grid-binding-data.html | 185 +++++++ vaadin-grid/test/grid-editing-columns.html | 412 ++++++++++++++++ vaadin-grid/test/grid-editor-handler.html | 202 ++++++++ vaadin-grid/test/grid-properties.html | 86 ++++ vaadin-grid/test/grid-redrawer.html | 201 ++++++++ vaadin-grid/test/grid-rendering-light-dom.html | 130 +++++ vaadin-grid/test/grid-scrolling-rows.html | 114 +++++ vaadin-grid/test/grid-selecting-rows.html | 645 +++++++++++++++++++++++++ vaadin-grid/test/grid-sorting-rows.html | 100 ++++ vaadin-grid/test/grid-static-sections.html | 222 +++++++++ vaadin-grid/test/index.html | 24 + 12 files changed, 2407 insertions(+) create mode 100644 vaadin-grid/test/common.js create mode 100644 vaadin-grid/test/grid-binding-data.html create mode 100644 vaadin-grid/test/grid-editing-columns.html create mode 100644 vaadin-grid/test/grid-editor-handler.html create mode 100644 vaadin-grid/test/grid-properties.html create mode 100644 vaadin-grid/test/grid-redrawer.html create mode 100644 vaadin-grid/test/grid-rendering-light-dom.html create mode 100644 vaadin-grid/test/grid-scrolling-rows.html create mode 100644 vaadin-grid/test/grid-selecting-rows.html create mode 100644 vaadin-grid/test/grid-sorting-rows.html create mode 100644 vaadin-grid/test/grid-static-sections.html create mode 100644 vaadin-grid/test/index.html (limited to 'vaadin-grid/test') diff --git a/vaadin-grid/test/common.js b/vaadin-grid/test/common.js new file mode 100644 index 0000000..4815d96 --- /dev/null +++ b/vaadin-grid/test/common.js @@ -0,0 +1,86 @@ +var grid, wrapper; + +describe.feature = function(description, suite) { + describe(description, function() { + before(function(done) { + initializeGrid(); + + waitUntil(function() { + return grid.then; + }, done, done); + }); + + after(function() { + return grid; //make sure everything is finished before moving on. + }); + + suite(); + }); +}; + +function gridContainsText(_grid, text) { + return Polymer.dom(_grid.root).querySelector(".v-grid-tablewrapper").parentElement.innerHTML.indexOf(text) > -1; +} + +function waitUntil(check, exec, onTimeout) { + var id = setInterval(function() { + if (check()) { + clearInterval(id); + clearTimeout(timeoutId); + exec(); + } + }, 100); + + var timeoutId = setTimeout(function() { + clearInterval(id); + assert.fail(); + onTimeout(); + }, 5000); +} + + +function initializeGrid() { + wrapper = document.getElementById("gridwrapper"); + wrapper.innerHTML = "" + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " " + + " "+ + "
Grid10000
VaadinX1000
NameValue
" + + "
"; + grid = wrapper.querySelector("v-grid"); + + return grid; +}; + +var local = function() { + return Polymer.dom(grid.root); +}; +var light = function() { + return Polymer.dom(grid); +}; + +var qLocal = function(selector) { + return local().querySelector(selector); +}; +var qaLocal = function(selector) { + return local().querySelectorAll(selector); +}; +var qLight = function(selector) { + return light().querySelector(selector); +}; diff --git a/vaadin-grid/test/grid-binding-data.html b/vaadin-grid/test/grid-binding-data.html new file mode 100644 index 0000000..2d82b26 --- /dev/null +++ b/vaadin-grid/test/grid-binding-data.html @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-editing-columns.html b/vaadin-grid/test/grid-editing-columns.html new file mode 100644 index 0000000..105aa3e --- /dev/null +++ b/vaadin-grid/test/grid-editing-columns.html @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-editor-handler.html b/vaadin-grid/test/grid-editor-handler.html new file mode 100644 index 0000000..20c6e66 --- /dev/null +++ b/vaadin-grid/test/grid-editor-handler.html @@ -0,0 +1,202 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-properties.html b/vaadin-grid/test/grid-properties.html new file mode 100644 index 0000000..46743a4 --- /dev/null +++ b/vaadin-grid/test/grid-properties.html @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-redrawer.html b/vaadin-grid/test/grid-redrawer.html new file mode 100644 index 0000000..81c5f49 --- /dev/null +++ b/vaadin-grid/test/grid-redrawer.html @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-rendering-light-dom.html b/vaadin-grid/test/grid-rendering-light-dom.html new file mode 100644 index 0000000..0251cd7 --- /dev/null +++ b/vaadin-grid/test/grid-rendering-light-dom.html @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-scrolling-rows.html b/vaadin-grid/test/grid-scrolling-rows.html new file mode 100644 index 0000000..a0ff781 --- /dev/null +++ b/vaadin-grid/test/grid-scrolling-rows.html @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-selecting-rows.html b/vaadin-grid/test/grid-selecting-rows.html new file mode 100644 index 0000000..0ac2eee --- /dev/null +++ b/vaadin-grid/test/grid-selecting-rows.html @@ -0,0 +1,645 @@ + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/vaadin-grid/test/grid-sorting-rows.html b/vaadin-grid/test/grid-sorting-rows.html new file mode 100644 index 0000000..59acbbf --- /dev/null +++ b/vaadin-grid/test/grid-sorting-rows.html @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + +
+ + diff --git a/vaadin-grid/test/grid-static-sections.html b/vaadin-grid/test/grid-static-sections.html new file mode 100644 index 0000000..757e8d2 --- /dev/null +++ b/vaadin-grid/test/grid-static-sections.html @@ -0,0 +1,222 @@ + + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/vaadin-grid/test/index.html b/vaadin-grid/test/index.html new file mode 100644 index 0000000..e9bd2fc --- /dev/null +++ b/vaadin-grid/test/index.html @@ -0,0 +1,24 @@ + + + + + + + + + + + -- cgit v1.2.3