aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-grid-1_dev/html/support/testing-utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/css-tests/css-grid-1_dev/html/support/testing-utils.js')
-rw-r--r--tests/wpt/css-tests/css-grid-1_dev/html/support/testing-utils.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/wpt/css-tests/css-grid-1_dev/html/support/testing-utils.js b/tests/wpt/css-tests/css-grid-1_dev/html/support/testing-utils.js
deleted file mode 100644
index 202c865b15e..00000000000
--- a/tests/wpt/css-tests/css-grid-1_dev/html/support/testing-utils.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var TestingUtils = (function() {
-
- function checkGridTemplateColumns(element, value) {
- assert_in_array(getComputedStyle(element).gridTemplateColumns, value, "gridTemplateColumns");
- }
-
- function checkGridTemplateRows(element, value) {
- assert_in_array(getComputedStyle(element).gridTemplateRows, value, "gridTemplateRows");
- }
-
- function testGridTemplateColumnsRows(gridId, columnsStyle, rowsStyle, columnsComputedValue, rowsComputedValue) {
- test(function() {
- var grid = document.getElementById(gridId);
- grid.style.gridTemplateColumns = columnsStyle;
- grid.style.gridTemplateRows = rowsStyle;
- checkGridTemplateColumns(grid, columnsComputedValue);
- checkGridTemplateRows(grid, rowsComputedValue);
- }, "'" + gridId + "' with: grid-template-columns: " + columnsStyle + "; and grid-template-rows: " + rowsStyle + ";");
- }
-
- function checkGridTemplateAreas(element, value) {
- assert_in_array(getComputedStyle(element).gridTemplateAreas, value, "gridTemplateAreas");
- }
-
- function testGridTemplateAreas(gridId, style, value) {
- test(function() {
- var grid = document.getElementById(gridId);
- grid.style.gridTemplateAreas = style;
- checkGridTemplateAreas(grid, value);
- }, "'" + gridId + "' with: grid-template-areas: " + style + ";");
- }
-
- return {
- testGridTemplateColumnsRows: testGridTemplateColumnsRows,
- testGridTemplateAreas: testGridTemplateAreas
- }
-})();