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

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

Issue 1521913002: PDF: Delete non-material viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/pdf/basic_test.js
diff --git a/chrome/test/data/pdf/basic_test.js b/chrome/test/data/pdf/basic_test.js
deleted file mode 100644
index 222d31771fffe241accabd2381dd72f216732811..0000000000000000000000000000000000000000
--- a/chrome/test/data/pdf/basic_test.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var tests = [
- /**
- * Test that some key elements exist and that they have the appropriate
- * constructor name. This verifies that polymer is working correctly.
- */
- function testHasElements() {
- var elementNames = [
- 'viewer-toolbar',
- 'viewer-page-indicator',
- 'viewer-progress-bar',
- 'viewer-password-screen-legacy',
- 'viewer-error-screen-legacy'
- ];
- for (var i = 0; i < elementNames.length; i++) {
- var elements = document.querySelectorAll(elementNames[i]);
- chrome.test.assertEq(1, elements.length);
- var element = elements[0];
- chrome.test.assertTrue(
- String(element.constructor).indexOf(elementNames[i]) != -1);
- }
- chrome.test.succeed();
- },
-
- /**
- * Test that the plugin element exists and is navigated to the correct URL.
- */
- function testPluginElement() {
- var plugin = document.getElementById('plugin');
- chrome.test.assertEq('embed', plugin.localName);
-
- chrome.test.assertTrue(
- plugin.getAttribute('src').indexOf('/pdf/test.pdf') != -1);
- chrome.test.succeed();
- },
-];
-
-chrome.test.runTests(tests);
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698