Skip to content

Commit 8ec7de9

Browse files
committed
Updating Testing-Instructions.md to include PDF Test
1 parent e6fdd89 commit 8ec7de9

File tree

1 file changed

+32
-20
lines changed

1 file changed

+32
-20
lines changed

SampleApps/WebView2APISample/documentation/Testing-Instructions.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ These are instructions for manually testing all the features of the WebView2 API
6363
* [Accelerator Key Support](#Accelerator-Key-Support)
6464
* [Language](#Language)
6565
* [Saving Password](#Saving-Password)
66+
* [Open Link in New Window From PDF](#Open-Link-in-New-Window-from-PDF)
6667

6768
## Getting started
6869

@@ -149,7 +150,7 @@ Test that prompts the user for some script to run in the WebView
149150
8. Click `OK` inside the Confirm Box
150151
9. Expected: dialog closed
151152
10. Expected: ExecuteScript Result popup that says `true`
152-
11. Click OK inside the popup dialog
153+
11. Click OK inside the popup dialog
153154
12. Expected: dialog closed
154155
155156
#### Post Message string
@@ -168,7 +169,7 @@ Test that prompts the user for some JSON web message to the top level document
168169
169170
Test that prompts the user for some script to run as the initialization script
170171
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
172173
_Scripts are executed after the global object has been created and before the HTML document has been parsed every navigation_
173174
174175
1. Launch the sample app.
@@ -301,7 +302,7 @@ Test browser process becoming unresponsive
301302
302303
#### Blocked Domains
303304
304-
Test that prompts user for sites to block
305+
Test that prompts user for sites to block
305306
_It includes foo.com and bar.org by default_
306307
307308
1. Launch the sample app.
@@ -318,7 +319,7 @@ _It includes foo.com and bar.org by default_
318319
319320
#### Set User Agent
320321
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
322323
_It only modifies the header for HTTP. Change won't be reflected if checked with `navigator.userAgent`_
323324
324325
1. Launch the sample app.
@@ -335,7 +336,7 @@ _It only modifies the header for HTTP. Change won't be reflected if checked with
335336
336337
#### Toggle JavaScript
337338
338-
Test that enables/disables JavaScript
339+
Test that enables/disables JavaScript
339340
_It is enabled by default. `Script -> Inject Script` won't be affected if disabled._
340341
341342
1. Launch the sample app.
@@ -351,7 +352,7 @@ _It is enabled by default. `Script -> Inject Script` won't be affected if disabl
351352
352353
#### Toggle Web Messaging
353354
354-
Test that enables/disables web messaging
355+
Test that enables/disables web messaging
355356
_It is enabled by default._
356357
357358
1. Launch the sample app.
@@ -367,7 +368,7 @@ _It is enabled by default._
367368
368369
#### Toggle Fullscreen allowed
369370
370-
Test the allows/disallows Fullscreen mode
371+
Test the allows/disallows Fullscreen mode
371372
_It is allowed by default._
372373
373374
1. Launch the sample app.
@@ -385,7 +386,7 @@ _It is allowed by default._
385386
386387
#### Toggle Status Bar enabled
387388
388-
Test that enables/disables Status Bar
389+
Test that enables/disables Status Bar
389390
_It is enabled by default._
390391
391392
1. Launch the sample app.
@@ -403,7 +404,7 @@ _It is enabled by default._
403404
404405
#### Toggle DevTools enabled
405406
406-
Test that enables/disables DevTools
407+
Test that enables/disables DevTools
407408
_It is enabled by default._
408409
409410
1. Launch the sample app.
@@ -422,7 +423,7 @@ _It is enabled by default._
422423
423424
#### Toggle ZoomControl enabled
424425
425-
Test that enables/disables Zoom
426+
Test that enables/disables Zoom
426427
_It is enabled by default._
427428
428429
1. Launch the sample app.
@@ -440,7 +441,7 @@ _It is enabled by default._
440441
441442
#### Toggle Block images
442443
443-
Test that enables/disables image blocking
444+
Test that enables/disables image blocking
444445
_It is disabled by default. Data URI won't e affected if disabled._
445446
446447
1. Launch the sample app.
@@ -487,7 +488,7 @@ Tests JavaScript Dialogs with different configurations
487488
488489
#### Toggle context menus enabled
489490
490-
Test that enables/disables context menu blocking
491+
Test that enables/disables context menu blocking
491492
_Context menus are enabled by default._
492493
493494
1. Launch the sample app.
@@ -504,7 +505,7 @@ _Context menus are enabled by default._
504505
505506
#### Toggle builtin error page enabled
506507
507-
Test that enables/disables built-in error page
508+
Test that enables/disables built-in error page
508509
_Builtin error page is enabled by default._
509510
510511
1. Launch the sample app.
@@ -582,7 +583,7 @@ or, height/width should be ~1.06x of [Bounds A](#bounds-A)
582583
583584
#### WebView Area
584585
585-
Test that resizes WebView window
586+
Test that resizes WebView window
586587
_Updates the bounds of the WebView window to resize_
587588
588589
1. Launch the sample app.
@@ -599,7 +600,7 @@ _Updates the bounds of the WebView window to resize_
599600
600601
#### WebView Zoom
601602
602-
Test that zooms in/out WebView
603+
Test that zooms in/out WebView
603604
_WebView maintains host set zoom factor across navigations_
604605
605606
1. Launch the sample app.
@@ -621,7 +622,7 @@ _WebView maintains host set zoom factor across navigations_
621622
622623
#### WebView Scale
623624
624-
Test scaling the WebView.
625+
Test scaling the WebView.
625626
_Scale is a resize and zoom that happens atomically. It results in the WebView
626627
getting larger or smaller without the layout of the page changing._
627628
@@ -655,7 +656,7 @@ Test that moves focus due to Tab traversal forward
655656
1. Go to `View -> Tab In`
656657
1. Expected: See the focus is set to the Images button (the first element) on <bing.com> in the WebView
657658
1. Click Tab button on keyboard
658-
1. Expected: See a focus rectangle around '...' button.
659+
1. Expected: See a focus rectangle around '...' button.
659660
660661
#### ReverseTab In
661662
@@ -667,7 +668,7 @@ Test that moves focus due to Tab traversal backward
667668
668669
#### Toggle Tab Handling
669670
670-
Test that enables/disables tab handling
671+
Test that enables/disables tab handling
671672
_It is disabled by default. Tabbing behavior should be identical whether this is enabled or disabled._
672673
673674
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
687688
688689
#### Web Messaging
689690
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
691692
Menu items `Script -> Post Message String` & `Script -> Post Message JSON` are demonstrated.
692693
693694
1. Launch the sample app.
@@ -696,7 +697,7 @@ Menu items `Script -> Post Message String` & `Script -> Post Message JSON` are d
696697
697698
#### Host Objects
698699
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
700701
Menu item `Script -> Host Objects` is demonstrated.
701702
702703
1. Launch the sample app.
@@ -866,3 +867,14 @@ Verify that we don't offer saving password.
866867
7. Ensure that the fields are not auto filled.
867868
8. Set focus on Email input, verify that we can choose to auto fill with previously typed in value.
868869
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

Comments
 (0)