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

Unified Diff: chrome/test/data/pdf/basic_plugin_test.js

Issue 266413002: Refactor pdf_scripting_api.js to remove the PDFMessagingHost in OOP PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/resources/pdf/pdf_scripting_api.js ('k') | chrome/test/data/pdf/basic_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/pdf/basic_plugin_test.js
diff --git a/chrome/test/data/pdf/basic_plugin_test.js b/chrome/test/data/pdf/basic_plugin_test.js
index b8d94acc004e9699b175e137060b50c6cfd757b8..0413d46378f23fafb487e18e72045a09a08bdccf 100644
--- a/chrome/test/data/pdf/basic_plugin_test.js
+++ b/chrome/test/data/pdf/basic_plugin_test.js
@@ -16,15 +16,10 @@ var tests = [
var sizer = document.getElementById('sizer');
chrome.test.assertEq(826, sizer.offsetWidth);
chrome.test.assertEq(1066, sizer.offsetHeight);
- }
+ chrome.test.succeed();
+ },
];
-function runTests() {
- for (var i = 0; i < tests.length; ++i) {
- console.log('Running: ' + tests[i].name);
- tests[i]();
- }
- chrome.test.notifyPass();
-}
-
-window.addEventListener('pdfload', runTests);
+window.addEventListener('pdfload', function() {
+ chrome.test.runTests(tests);
+});
« no previous file with comments | « chrome/browser/resources/pdf/pdf_scripting_api.js ('k') | chrome/test/data/pdf/basic_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698