blob: 9865f3f965a299b51a150dffbd270e2a50acbaa7 [file] [log] [blame]
// Copyright 2018 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.
import {PDFScriptingAPI} from 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/pdf_scripting_api.js';
const tests = [
/**
* Test that the JS was able to call back via "app.beep()"
*/
function testHasCorrectBeepCount() {
chrome.test.assertEq(1, viewer.beepCount_);
chrome.test.succeed();
}
];
const scriptingAPI = new PDFScriptingAPI(window, window);
scriptingAPI.setLoadCompleteCallback(function() {
chrome.test.runTests(tests);
});