Index: chrome/test/data/pdf/navigator_test.js |
diff --git a/chrome/test/data/pdf/navigator_test.js b/chrome/test/data/pdf/navigator_test.js |
index d068a96ec81dc350ff6995ff313a7fdb8dc36b4b..21c6bb954305344307059fe374372c0bbd4e167c 100644 |
--- a/chrome/test/data/pdf/navigator_test.js |
+++ b/chrome/test/data/pdf/navigator_test.js |
@@ -34,9 +34,14 @@ var tests = [ |
var viewport = new Viewport(mockWindow, mockSizer, mockCallback.callback, |
function() {}, function() {}, 0, 0); |
- var paramsParser = new OpenPDFParamsParser(); |
- paramsParser.namedDestinations['US'] = 0; |
- paramsParser.namedDestinations['UY'] = 2; |
+ var paramsParser = new OpenPDFParamsParser(function(name) { |
+ if (name == 'US') |
+ paramsParser.onNamedDestinationReceived(0); |
+ else if (name == 'UY') |
+ paramsParser.onNamedDestinationReceived(2); |
+ else |
+ paramsParser.onNamedDestinationReceived(-1); |
+ }); |
var url = "http://xyz.pdf"; |
var navigateInCurrentTabCallback = new NavigateInCurrentTabCallback(); |