| Index: chrome/test/data/pdf/basic_plugin_test.js
|
| diff --git a/chrome/test/data/pdf/basic_plugin_test.js b/chrome/test/data/pdf/basic_plugin_test.js
|
| index 1e0d7e62902f8e7dfedbaac9c79cd63b9004198a..42b0e1da1ad5eb97bdfe1c3e07f604ac59ef92ce 100644
|
| --- a/chrome/test/data/pdf/basic_plugin_test.js
|
| +++ b/chrome/test/data/pdf/basic_plugin_test.js
|
| @@ -45,7 +45,15 @@ var tests = [
|
| chrome.test.assertEq('some more text',
|
| dict.textBox[1].textNodes[0].text);
|
| }), 0);
|
| - }
|
| + },
|
| +
|
| + function testGetSelectedText() {
|
| + var client = new PDFScriptingAPI(window, window);
|
| + client.selectAll();
|
| + client.getSelectedText(chrome.test.callbackPass(function(selectedText) {
|
| + chrome.test.assertEq('this is some text\nsome more text', selectedText);
|
| + }));
|
| + },
|
| ];
|
|
|
| var client = new PDFScriptingAPI(window, window);
|
|
|