Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js

Issue 2868003002: CSSPaint: Move layout tests in csspaint/ to http/tests/csspaint/ (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js
diff --git a/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js b/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js
deleted file mode 100644
index e7aec3d12ad8b45b46f70e53d0908bb1c28a0808..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Given a set of 'tests', runs them in the worklet, then comparing the
-// expectedError or the expectedMessage.
-//
-// Usage:
-// runner([{/* test1 */}, { /* test2 */}]);
-function runner(tests) {
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
- }
-
- tests.reduce(function(chain, obj) {
- return chain.then(function() {
- if (obj.expectedError) {
- console.log('The worklet should throw an error with: "' + obj.expectedError + '"');
- } else if (obj.expectedMessage) {
- console.log('The worklet should log a warning with: "' + obj.expectedMessage + '"');
- } else {
- console.log('The worklet should not throw an error.');
- }
- var blob = new Blob([obj.script], {type: 'text/javascript'});
- return paintWorklet.addModule(URL.createObjectURL(blob));
- });
- }, Promise.resolve()).then(function() {
- if (window.testRunner) {
- testRunner.notifyDone();
- }
- });
-}

Powered by Google App Engine
This is Rietveld 408576698