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

Side by Side Diff: LayoutTests/fast/js/resources/js-test-pre.js

Issue 57483002: Implement File constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed feedback on tests. Created 7 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // svg/dynamic-updates tests set enablePixelTesting=true, as we want to dump tex t + pixel results 1 // svg/dynamic-updates tests set enablePixelTesting=true, as we want to dump tex t + pixel results
2 if (self.testRunner) { 2 if (self.testRunner) {
3 if (self.enablePixelTesting) 3 if (self.enablePixelTesting)
4 testRunner.dumpAsTextWithPixelResults(); 4 testRunner.dumpAsTextWithPixelResults();
5 else 5 else
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 } 7 }
8 8
9 var description, debug, successfullyParsed, errorMessage; 9 var description, debug, successfullyParsed, errorMessage;
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 if (!isWorker()) { 89 if (!isWorker()) {
90 window.addEventListener('DOMContentLoaded', handleTestFinished, false); 90 window.addEventListener('DOMContentLoaded', handleTestFinished, false);
91 insertStyleSheet(); 91 insertStyleSheet();
92 } 92 }
93 93
94 if (!self.isOnErrorTest) { 94 if (!self.isOnErrorTest) {
95 self.onerror = function(message) 95 self.onerror = function(message)
96 { 96 {
97 errorMessage = message; 97 errorMessage = message;
98 finishJSTest();
Inactive 2013/11/05 00:38:48 The idea of this change was to help you debug your
pwnall-personal 2013/11/05 01:14:23 It is not necessary for tests to pass. At the same
98 }; 99 };
99 } 100 }
100 })(); 101 })();
101 102
102 function isWorker() 103 function isWorker()
103 { 104 {
104 // It's conceivable that someone would stub out 'document' in a worker so 105 // It's conceivable that someone would stub out 'document' in a worker so
105 // also check for childNodes, an arbitrary DOM-related object that is 106 // also check for childNodes, an arbitrary DOM-related object that is
106 // meaningless in a WorkerContext. 107 // meaningless in a WorkerContext.
107 return (typeof document === 'undefined' || typeof document.childNodes === 'u ndefined') && !!self.importScripts; 108 return (typeof document === 'undefined' || typeof document.childNodes === 'u ndefined') && !!self.importScripts;
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 testPassed = function(msg) { 686 testPassed = function(msg) {
686 workerPort.postMessage('PASS:' + msg); 687 workerPort.postMessage('PASS:' + msg);
687 } 688 }
688 finishJSTest = function() { 689 finishJSTest = function() {
689 workerPort.postMessage('DONE:'); 690 workerPort.postMessage('DONE:');
690 } 691 }
691 debug = function(msg) { 692 debug = function(msg) {
692 workerPort.postMessage(msg); 693 workerPort.postMessage(msg);
693 } 694 }
694 } 695 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698