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

Side by Side Diff: chrome/test/data/pdf/basic_test.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var tests = [ 5 var tests = [
6 /** 6 /**
7 * Test that some key elements exist and that they have the appropriate 7 * Test that some key elements exist and that they have the appropriate
8 * constructor name. This verifies that polymer is working correctly. 8 * constructor name. This verifies that polymer is working correctly.
9 */ 9 */
10 function testHasElements() { 10 function testHasElements() {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 getFilenameFromURL('http://example.com/name%20with%20spaces.pdf')); 116 getFilenameFromURL('http://example.com/name%20with%20spaces.pdf'));
117 117
118 chrome.test.assertEq( 118 chrome.test.assertEq(
119 'invalid%EDname.pdf', 119 'invalid%EDname.pdf',
120 getFilenameFromURL('http://example.com/invalid%EDname.pdf')); 120 getFilenameFromURL('http://example.com/invalid%EDname.pdf'));
121 121
122 chrome.test.succeed(); 122 chrome.test.succeed();
123 } 123 }
124 ]; 124 ];
125 125
126 importTestHelpers().then(function() { 126 chrome.test.runTests(tests);
127 chrome.test.runTests(tests);
128 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698