| 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 3a1e360d45d520b6c5af8d813ff2ef23af7cfec5..08d27141a5b25e9e6c7cf0e6b9d96fd7290cea26 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 scriptingAPI = new PDFScriptingAPI(window, window);
|
|
|