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

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

Issue 2949883006: PDFExtensionTest: Stop using chrome:// URL to load mock-interactions.js (Closed)
Patch Set: Add dependency Created 3 years, 6 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: chrome/test/data/pdf/test_util.js
diff --git a/chrome/test/data/pdf/test_util.js b/chrome/test/data/pdf/test_util.js
index 7fff3fa3862aabca15511bdc155f5eb3966230ac..9efead405cec920348ba1c6caf6174aef2871033 100644
--- a/chrome/test/data/pdf/test_util.js
+++ b/chrome/test/data/pdf/test_util.js
@@ -104,27 +104,3 @@ function MockDocumentDimensions(width, height) {
this.pageDimensions = [];
};
}
-
-function importHTML(src) {
- var link = document.createElement('link');
- var promise = new Promise(function(resolve, reject) {
- link.onload = resolve;
- link.onerror = reject;
- });
- link.rel = 'import';
- link.href = src;
- document.head.appendChild(link);
- return promise;
-}
-
-/**
- * Import iron-test-helpers into the test document.
- * @example
- * importTestHelpers().then(function() {
- * chrome.test.runTests(...);
- * })
- */
-function importTestHelpers() {
- return importHTML('chrome://resources/polymer/v1_0/iron-test-helpers/' +
- 'iron-test-helpers.html');
-}

Powered by Google App Engine
This is Rietveld 408576698