From 67bc5d8d768409541c06f9fef6b8c8ea5c2ce93b Mon Sep 17 00:00:00 2001 From: ajo Date: Mon, 3 Nov 2014 16:09:12 -0800 Subject: [PATCH 01/17] Begin migration to web-component-tester. --- .../core-ajax-progress-and-loading.html | 0 test/core-ajax-response-and-error.html | 110 ++++++++++++++++++ {tests/html => test}/core-ajax.html | 11 +- test/index.html | 17 +++ {tests => test}/js/htmltests.js | 0 {tests => test}/runner.html | 0 {tests => test}/tests.json | 0 tests/html/core-ajax-response-and-error.html | 109 ----------------- 8 files changed, 131 insertions(+), 116 deletions(-) rename {tests/html => test}/core-ajax-progress-and-loading.html (100%) create mode 100644 test/core-ajax-response-and-error.html rename {tests/html => test}/core-ajax.html (76%) create mode 100644 test/index.html rename {tests => test}/js/htmltests.js (100%) rename {tests => test}/runner.html (100%) rename {tests => test}/tests.json (100%) delete mode 100644 tests/html/core-ajax-response-and-error.html diff --git a/tests/html/core-ajax-progress-and-loading.html b/test/core-ajax-progress-and-loading.html similarity index 100% rename from tests/html/core-ajax-progress-and-loading.html rename to test/core-ajax-progress-and-loading.html diff --git a/test/core-ajax-response-and-error.html b/test/core-ajax-response-and-error.html new file mode 100644 index 0000000..c246ad0 --- /dev/null +++ b/test/core-ajax-response-and-error.html @@ -0,0 +1,110 @@ + + + + + core-ajax-response-and-error + + + + + + + + + + + + + + + + + diff --git a/tests/html/core-ajax.html b/test/core-ajax.html similarity index 76% rename from tests/html/core-ajax.html rename to test/core-ajax.html index 318d052..3c4760e 100644 --- a/tests/html/core-ajax.html +++ b/test/core-ajax.html @@ -11,11 +11,10 @@ core-ajax - - - + + - + @@ -27,8 +26,7 @@ auto> diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..8d0c329 --- /dev/null +++ b/test/index.html @@ -0,0 +1,17 @@ + + + + + + + + + + + diff --git a/tests/js/htmltests.js b/test/js/htmltests.js similarity index 100% rename from tests/js/htmltests.js rename to test/js/htmltests.js diff --git a/tests/runner.html b/test/runner.html similarity index 100% rename from tests/runner.html rename to test/runner.html diff --git a/tests/tests.json b/test/tests.json similarity index 100% rename from tests/tests.json rename to test/tests.json diff --git a/tests/html/core-ajax-response-and-error.html b/tests/html/core-ajax-response-and-error.html deleted file mode 100644 index a4a817e..0000000 --- a/tests/html/core-ajax-response-and-error.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - core-ajax-response-and-error - - - - - - - - - - - - - - - - - - From 7e6fa6a5f20d5289719044eda8738337309eed8e Mon Sep 17 00:00:00 2001 From: ajo Date: Mon, 3 Nov 2014 16:10:14 -0800 Subject: [PATCH 02/17] Cleanup erroneous test files. --- test/js/htmltests.js | 5 ----- test/runner.html | 14 -------------- test/tests.json | 6 ------ 3 files changed, 25 deletions(-) delete mode 100644 test/js/htmltests.js delete mode 100644 test/runner.html delete mode 100644 test/tests.json diff --git a/test/js/htmltests.js b/test/js/htmltests.js deleted file mode 100644 index fdf13dc..0000000 --- a/test/js/htmltests.js +++ /dev/null @@ -1,5 +0,0 @@ -htmlSuite('core-ajax', function() { - htmlTest('html/core-ajax.html'); - htmlTest('html/core-ajax-response-and-error.html'); - htmlTest('html/core-ajax-progress-and-loading.html'); -}); diff --git a/test/runner.html b/test/runner.html deleted file mode 100644 index 26829de..0000000 --- a/test/runner.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - Web Component Test Runner - - - - - - diff --git a/test/tests.json b/test/tests.json deleted file mode 100644 index f455f4c..0000000 --- a/test/tests.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "tools": ["chai", "mocha-tdd"], - "tests": [ - "js/htmltests.js" - ] -} \ No newline at end of file From f7b4b6ef3f61ce4525757da96cac9bdbe217f734 Mon Sep 17 00:00:00 2001 From: ajo Date: Mon, 3 Nov 2014 22:13:04 -0800 Subject: [PATCH 03/17] Migrate first race condition test to wct. --- test/core-ajax-response-and-error.html | 131 +++++++++---------------- 1 file changed, 45 insertions(+), 86 deletions(-) diff --git a/test/core-ajax-response-and-error.html b/test/core-ajax-response-and-error.html index c246ad0..5c64794 100644 --- a/test/core-ajax-response-and-error.html +++ b/test/core-ajax-response-and-error.html @@ -9,102 +9,61 @@ --> - core-ajax-response-and-error + core-ajax - + + + - - - - - From 856dcdb124a41ad1a13a36febf6630bb919c672f Mon Sep 17 00:00:00 2001 From: ajo Date: Tue, 4 Nov 2014 14:32:31 -0800 Subject: [PATCH 04/17] Fix test. Migrate to animationFrameFlush(locally defined for now). --- test/core-ajax-response-and-error.html | 99 ++++++++++++++++---------- 1 file changed, 60 insertions(+), 39 deletions(-) diff --git a/test/core-ajax-response-and-error.html b/test/core-ajax-response-and-error.html index 5c64794..0a8e256 100644 --- a/test/core-ajax-response-and-error.html +++ b/test/core-ajax-response-and-error.html @@ -14,7 +14,19 @@ - - core-ajax-response-and-error + core-ajax - - - + + - - + + + - -