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

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

Issue 857863002: Revert of Introduce new test for bookmark loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks-minimal
Patch Set: Created 5 years, 11 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_extension_test.cc ('k') | chrome/test/data/pdf/test-bookmarks.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/pdf/bookmarks_test.js
diff --git a/chrome/test/data/pdf/bookmarks_test.js b/chrome/test/data/pdf/bookmarks_test.js
deleted file mode 100644
index 43a679b3fdddba67a3ff21f0400d8e08dc7e40ed..0000000000000000000000000000000000000000
--- a/chrome/test/data/pdf/bookmarks_test.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2015 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 the correct bookmarks were loaded for test-bookmarks.pdf.
- */
- function testHasCorrectBookmarks() {
- var bookmarks = viewer.bookmarks;
-
- // Load all relevant bookmarks.
- chrome.test.assertEq(2, bookmarks.length);
- var firstBookmark = bookmarks[0];
- var secondBookmark = bookmarks[1];
- chrome.test.assertEq(1, firstBookmark.children.length);
- chrome.test.assertEq(0, secondBookmark.children.length);
- var firstNestedBookmark = firstBookmark.children[0];
-
- // Check titles.
- chrome.test.assertEq('First Section',
- firstBookmark.title);
- chrome.test.assertEq('First Subsection',
- firstNestedBookmark.title);
- chrome.test.assertEq('Second Section',
- secondBookmark.title);
- // Check pages.
- chrome.test.assertEq(0, firstBookmark.page);
- chrome.test.assertEq(1, firstNestedBookmark.page);
- chrome.test.assertEq(2, secondBookmark.page);
-
- chrome.test.succeed();
- }
-];
-
-var scriptingAPI = new PDFScriptingAPI(window, window);
-scriptingAPI.setLoadCallback(function() {
- chrome.test.runTests(tests);
-});
« no previous file with comments | « chrome/browser/resources/pdf/pdf_extension_test.cc ('k') | chrome/test/data/pdf/test-bookmarks.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698