# SCRIPTED HOST TEST PLUGIN

The following are tests against the Host Api
The Host version is:
pluginready not fired
Testing the focus state:
CONTAINS FOCUS
NOT FOCUSED
VS Host specific tests:
Enabled:
Disabled:
Image with cyan pixel:
VS Environment Tokens and Alpha
Set the state for commands:
Test Plugin Command enabled state (Focus)
Test Plugin Command visible state (Focus)
Copy Command enabled state (Focus)
Number of times that commands were executed from this control:
0 Test Plugin Command Count
0 Copy Command Count
Right click here to view full test context menu.
Right click here to view test context menu with the first and third context menu commands disabled, and the second not visible.
Right click here to show the context menu with an invalid x, y parameter, and the error should be logged at the bottom
Nested Div Elements With Tooltips:

CHILD DIV A

Child Div 1

Child Div 2

CHILD DIV B

Child Div 1

Child Div 2

Span With Tooltip:
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. Om shanti shanti
This is some text, the tooltip has embedded HTML. Shown via a call to Tooltip.Show
This is some text, the tooltip has embedded HTML. Shown via data attribution.
Tooltip with VS themed image:
Tooltip with CSS animation:
Settings Tests:
Collection Name:
Key Names:
Default Values:
Values:
VS Internal specific tests:
CodeMarker Test:
PubSub Test:
Topic Name:
Message Body:
Output:
Experimental Tests:
Invoke XHR wrapped in Promise
Target URL:
Status: Not Started
Log a message to the host output window
Message to log to the output window
Resources test:
Dynamic Resource test:
PerfAnalytics Test:
Results:
Context Menu tests:
This box color will change based on a context menu item click:
Right click in this div to see HTML based context menus
Right click in this span to see HTML based context menus
This box is used for attach/detach/dispose tests:
Theme tests:

This text should be 'plugin-scrollbar-face-color' once the CSS is dynamically loaded and processed for theme tokens.

Storage (File API) tests:

- Get File List
  Please enter an integer representing the index in the file list (optional)
  Please enter an integer representing the max number of files to return (optional)

- Create -> Write -> Close File

- Open -> Read -> Close File
- Open -> Seek -> Read -> Close All
  File Access
  File Share
  Seek offset
  Seek Origin
- Binary Read / Write
- Open File Dialog
  Extensions list
  Extensions index
  Read result

Port Marshaling Tests:
Roundtrip status:
Roundtrip value to eval:
JSON value before roundtrip:
JSON value after roundtrip:
Test that an unhandled submit button doesn't navigate:
Test that a link doesn't navigate
Try navigating to bing.com (should do nothing)
Test that opening a new window, however, works
Try navigating to bing.com (should open a new window)
Test that navigating to an anchor works
Try navigating to the top of the document (should scroll to the top)
For the test against a blocking plugin, scroll to the bottom of this page.
Click here to throw a fatal error and terminate the process
Click the following buttons to report non-fatal errors
Result of reportError:
Click here to call Microsoft.Plugin.Diagnostics.terminate() to terminate the process
Document:
Line:
Col:
Test selection works correctly for elements that are added dynamically
Hotkey States:
Enable Zooming
Enable Clipboard Keys
VARIOUS HTML CONTROLS TO TEST THEMING
Testing theming using Editor and LightSwitch styles
Note: the boxes below should not be red (change theme to test)
font
Svg image injection:
input & disabled input:
button:
select:
multiple select:
textarea:
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. Om shanti shanti
Tree view styles:

- Installed
- - Templates
    - Visual C#
      - LightSwitch
    - Other Languages
      - Visual Basic
        - Windows Metro style
        - Windows
        - Extensibility
      - Visual C ++

Link styles: Bing

#### Testing other HTML elements

Input [type="reset"]:
Input [type="button"]:
Input [type="submit"]:
Single-line text input field (no type):
The following two radio buttons are inside a `fieldset` element with a `legend`:
Legend
Giraffe
Zebra (initially checked)
Check the colors
Green
Purple (initially checked)
Listbox (select size="3")
Input [type="password"]:
Input [type="file"]:
(note: limited css style is available for file inputs)
Input [type="image"]:

- On VS hosts the input image will be replaced by a VS themed image.
- Input type="image" does not fully support "disabled".
- Image will only appear disabled on a VS host where it is replaced by a themed image.

Enabled:
Disabled:
HTML5 input examples:
color:
email:
Testing that a blocking plugin does not impact the host:
Scripted Sandbox Extensibility
Errors: