@@ -63,6 +63,7 @@ These are instructions for manually testing all the features of the WebView2 API
63
63
* [ Accelerator Key Support] ( #Accelerator-Key-Support )
64
64
* [ Language] ( #Language )
65
65
* [ Saving Password] ( #Saving-Password )
66
+ * [ Open Link in New Window From PDF] ( #Open-Link-in-New-Window-from-PDF )
66
67
67
68
## Getting started
68
69
@@ -149,7 +150,7 @@ Test that prompts the user for some script to run in the WebView
149
150
8. Click `OK` inside the Confirm Box
150
151
9. Expected: dialog closed
151
152
10. Expected: ExecuteScript Result popup that says `true`
152
- 11. Click OK inside the popup dialog
153
+ 11. Click OK inside the popup dialog
153
154
12. Expected: dialog closed
154
155
155
156
#### Post Message string
@@ -168,7 +169,7 @@ Test that prompts the user for some JSON web message to the top level document
168
169
169
170
Test that prompts the user for some script to run as the initialization script
170
171
171
- Test that prompts the user for the ID of the initialize scripts that the user would like to remove
172
+ Test that prompts the user for the ID of the initialize scripts that the user would like to remove
172
173
_Scripts are executed after the global object has been created and before the HTML document has been parsed every navigation_
173
174
174
175
1. Launch the sample app.
@@ -301,7 +302,7 @@ Test browser process becoming unresponsive
301
302
302
303
#### Blocked Domains
303
304
304
- Test that prompts user for sites to block
305
+ Test that prompts user for sites to block
305
306
_It includes foo.com and bar.org by default_
306
307
307
308
1. Launch the sample app.
@@ -318,7 +319,7 @@ _It includes foo.com and bar.org by default_
318
319
319
320
#### Set User Agent
320
321
321
- Test that prompts the user for a new user agent string and sets user agent
322
+ Test that prompts the user for a new user agent string and sets user agent
322
323
_It only modifies the header for HTTP. Change won't be reflected if checked with `navigator.userAgent`_
323
324
324
325
1. Launch the sample app.
@@ -335,7 +336,7 @@ _It only modifies the header for HTTP. Change won't be reflected if checked with
335
336
336
337
#### Toggle JavaScript
337
338
338
- Test that enables/disables JavaScript
339
+ Test that enables/disables JavaScript
339
340
_It is enabled by default. `Script -> Inject Script` won't be affected if disabled._
340
341
341
342
1. Launch the sample app.
@@ -351,7 +352,7 @@ _It is enabled by default. `Script -> Inject Script` won't be affected if disabl
351
352
352
353
#### Toggle Web Messaging
353
354
354
- Test that enables/disables web messaging
355
+ Test that enables/disables web messaging
355
356
_It is enabled by default._
356
357
357
358
1. Launch the sample app.
@@ -367,7 +368,7 @@ _It is enabled by default._
367
368
368
369
#### Toggle Fullscreen allowed
369
370
370
- Test the allows/disallows Fullscreen mode
371
+ Test the allows/disallows Fullscreen mode
371
372
_It is allowed by default._
372
373
373
374
1. Launch the sample app.
@@ -385,7 +386,7 @@ _It is allowed by default._
385
386
386
387
#### Toggle Status Bar enabled
387
388
388
- Test that enables/disables Status Bar
389
+ Test that enables/disables Status Bar
389
390
_It is enabled by default._
390
391
391
392
1. Launch the sample app.
@@ -403,7 +404,7 @@ _It is enabled by default._
403
404
404
405
#### Toggle DevTools enabled
405
406
406
- Test that enables/disables DevTools
407
+ Test that enables/disables DevTools
407
408
_It is enabled by default._
408
409
409
410
1. Launch the sample app.
@@ -422,7 +423,7 @@ _It is enabled by default._
422
423
423
424
#### Toggle ZoomControl enabled
424
425
425
- Test that enables/disables Zoom
426
+ Test that enables/disables Zoom
426
427
_It is enabled by default._
427
428
428
429
1. Launch the sample app.
@@ -440,7 +441,7 @@ _It is enabled by default._
440
441
441
442
#### Toggle Block images
442
443
443
- Test that enables/disables image blocking
444
+ Test that enables/disables image blocking
444
445
_It is disabled by default. Data URI won't e affected if disabled._
445
446
446
447
1. Launch the sample app.
@@ -487,7 +488,7 @@ Tests JavaScript Dialogs with different configurations
487
488
488
489
#### Toggle context menus enabled
489
490
490
- Test that enables/disables context menu blocking
491
+ Test that enables/disables context menu blocking
491
492
_Context menus are enabled by default._
492
493
493
494
1. Launch the sample app.
@@ -504,7 +505,7 @@ _Context menus are enabled by default._
504
505
505
506
#### Toggle builtin error page enabled
506
507
507
- Test that enables/disables built-in error page
508
+ Test that enables/disables built-in error page
508
509
_Builtin error page is enabled by default._
509
510
510
511
1. Launch the sample app.
@@ -582,7 +583,7 @@ or, height/width should be ~1.06x of [Bounds A](#bounds-A)
582
583
583
584
#### WebView Area
584
585
585
- Test that resizes WebView window
586
+ Test that resizes WebView window
586
587
_Updates the bounds of the WebView window to resize_
587
588
588
589
1. Launch the sample app.
@@ -599,7 +600,7 @@ _Updates the bounds of the WebView window to resize_
599
600
600
601
#### WebView Zoom
601
602
602
- Test that zooms in/out WebView
603
+ Test that zooms in/out WebView
603
604
_WebView maintains host set zoom factor across navigations_
604
605
605
606
1. Launch the sample app.
@@ -621,7 +622,7 @@ _WebView maintains host set zoom factor across navigations_
621
622
622
623
#### WebView Scale
623
624
624
- Test scaling the WebView.
625
+ Test scaling the WebView.
625
626
_Scale is a resize and zoom that happens atomically. It results in the WebView
626
627
getting larger or smaller without the layout of the page changing._
627
628
@@ -655,7 +656,7 @@ Test that moves focus due to Tab traversal forward
655
656
1. Go to `View -> Tab In`
656
657
1. Expected: See the focus is set to the Images button (the first element) on <bing.com> in the WebView
657
658
1. Click Tab button on keyboard
658
- 1. Expected: See a focus rectangle around '...' button.
659
+ 1. Expected: See a focus rectangle around '...' button.
659
660
660
661
#### ReverseTab In
661
662
@@ -667,7 +668,7 @@ Test that moves focus due to Tab traversal backward
667
668
668
669
#### Toggle Tab Handling
669
670
670
- Test that enables/disables tab handling
671
+ Test that enables/disables tab handling
671
672
_It is disabled by default. Tabbing behavior should be identical whether this is enabled or disabled._
672
673
673
674
1. Launch the sample app and load <https://www.google.com>
@@ -687,7 +688,7 @@ _It is disabled by default. Tabbing behavior should be identical whether this is
687
688
688
689
#### Web Messaging
689
690
690
- Test that demonstrates basic interaction between the host app and the WebView by means of Web Messages
691
+ Test that demonstrates basic interaction between the host app and the WebView by means of Web Messages
691
692
Menu items `Script -> Post Message String` & `Script -> Post Message JSON` are demonstrated.
692
693
693
694
1. Launch the sample app.
@@ -696,7 +697,7 @@ Menu items `Script -> Post Message String` & `Script -> Post Message JSON` are d
696
697
697
698
#### Host Objects
698
699
699
- Test that demonstrates basic interaction between the host app and the WebView by means of Web Messages
700
+ Test that demonstrates basic interaction between the host app and the WebView by means of Web Messages
700
701
Menu item `Script -> Host Objects` is demonstrated.
701
702
702
703
1. Launch the sample app.
@@ -866,3 +867,14 @@ Verify that we don't offer saving password.
866
867
7. Ensure that the fields are not auto filled.
867
868
8. Set focus on Email input, verify that we can choose to auto fill with previously typed in value.
868
869
9. Set focus on Password input, verify that there is no auto fill option showing up.
870
+
871
+ #### Open Link in New Window from PDF
872
+
873
+ Verify that the `NewWindowRequested` event is fired when opening a link in new window from PDF.
874
+
875
+ 1. Launch the sample app.
876
+ 2. Load https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf.
877
+ 3. Go to `Scenario -> Event Monitor` to begin tracking events.
878
+ 4. Scroll to the second page of the PDF and right click on the first link to open the context menu.
879
+ 5. Click on 'Open link in new window'.
880
+ 6. Expected: Even Monitor displays `NewWindowRequested`.
0 commit comments