diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/alignment/support')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/alignment/support/100x100-green.png | bin | 0 -> 91 bytes | |||
-rw-r--r-- | testing/web-platform/tests/css/css-grid/alignment/support/25x50-green.png | bin | 0 -> 99 bytes | |||
-rw-r--r-- | testing/web-platform/tests/css/css-grid/alignment/support/50x50-green.png | bin | 0 -> 205 bytes | |||
-rw-r--r-- | testing/web-platform/tests/css/css-grid/alignment/support/style-change.js | 14 |
4 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/alignment/support/100x100-green.png b/testing/web-platform/tests/css/css-grid/alignment/support/100x100-green.png Binary files differnew file mode 100644 index 0000000000..25b76c3c6f --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/alignment/support/100x100-green.png diff --git a/testing/web-platform/tests/css/css-grid/alignment/support/25x50-green.png b/testing/web-platform/tests/css/css-grid/alignment/support/25x50-green.png Binary files differnew file mode 100644 index 0000000000..6ab02fce0f --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/alignment/support/25x50-green.png diff --git a/testing/web-platform/tests/css/css-grid/alignment/support/50x50-green.png b/testing/web-platform/tests/css/css-grid/alignment/support/50x50-green.png Binary files differnew file mode 100644 index 0000000000..6c1406b7df --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/alignment/support/50x50-green.png diff --git a/testing/web-platform/tests/css/css-grid/alignment/support/style-change.js b/testing/web-platform/tests/css/css-grid/alignment/support/style-change.js new file mode 100644 index 0000000000..766d140d2b --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/alignment/support/style-change.js @@ -0,0 +1,14 @@ +function evaluateStyleChange(element, phase, expectedProperty, expectedResult) { + element.className += " " + phase; + element.setAttribute(expectedProperty, expectedResult); + checkLayout("." + phase, false); +} +function evaluateStyleChangeMultiple(phase, expectedResult) { + for (var item in expectedResult) { + var element = document.getElementById(item); + element.className += " " + phase; + for (var key in expectedResult[item]) + element.setAttribute(key, expectedResult[item][key]); + } + checkLayout("." + phase, false); +} |