Skip to content

Commit 6039094

Browse files
author
craigcaseyMSFT
committed
changes after review cycle
1 parent f7cd607 commit 6039094

File tree

2 files changed

+7
-66
lines changed

2 files changed

+7
-66
lines changed

docs/test/using-html5-controls-in-coded-ui-tests.md

Lines changed: 6 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,7 @@ Coded UI tests include support for some of the HTML5 controls that are included
2626
> If you create a coded UI test in Internet Explorer 10, it might not run using Internet Explorer 9 or Internet Explorer 8. This is because Internet Explorer 10 includes HTML5 controls such as Audio, Video, ProgressBar and Slider. These HTML5 controls are not recognized by Internet Explorer 9, or Internet Explorer 8. Likewise, your coded UI test using Internet Explorer 9 might include some HTML5 controls that also will not be recognized by Internet Explorer 8.
2727
2828

29-
## Supported HTML5 Controls
30-
Coded UI tests include support for record, playback, and validation of the following HTML5 controls:
31-
32-
- [Audio Control](#UsingHTML5ControlsCodedUITestsAudio)
33-
34-
- [Video Control](#UsingHTML5ControlsCodedUITestsVideo)
35-
36-
- [Slider](#UsingHTML5ControlsCodedUITestsSlider)
37-
38-
- [ProgressBar](#UsingHTML5ControlsCodedUITestsProgressBar)
39-
40-
### <a name="UsingHTML5ControlsCodedUITestsAudio"></a> Audio Control
29+
## Audio Control
4130
**Audio control:** Actions on the HTML5 Audio control are correctly recorded and played back.
4231

4332
![HTML5 Audio control](../test/media/codedui_html5_audio.png)
@@ -51,27 +40,7 @@ Coded UI tests include support for some of the HTML5 controls that are included
5140
|**Unmute audio**<br /><br /> Directly from control, or from controls context menu.|Unmute \<name> Audio|HtmlAudio.Unmute()|
5241
|**Change volume of audio**|Set volume of \<name> Audio to 79%|HtmlAudio.SetVolume(float)|
5342

54-
The following properties are available for HtmlAudio and you can add an assertion on all of them:
55-
56-
```HTML
57-
string AutoPlay
58-
string Controls
59-
string CurrentSrc
60-
string CurrentTime
61-
string CurrentTimeAsString
62-
string Duration
63-
string DurationAsString
64-
string Ended
65-
string Loop
66-
string Muted
67-
string Paused
68-
string PlaybackRate
69-
string ReadyState
70-
string Seeking
71-
string Src
72-
string Volume
73-
74-
```
43+
See [HTMLAudioElement](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) for a list of properties on which you can add an assertion.
7544

7645
**Search properties:** The search properties for `HtmlAudio` are `Id`, `Name` and `Title`.
7746

@@ -81,7 +50,7 @@ string Volume
8150
> The amount of time for Seek and Pause can be significant. During playback, the coded UI test will wait until the specified time in `(TimeSpan)` before Pausing the audio. If by some special circumstance, the specified time has passed before hitting the Pause command, an exception will be thrown.
8251
8352

84-
### <a name="UsingHTML5ControlsCodedUITestsVideo"></a> Video Control
53+
## Video Control
8554
**Video control:** Actions on the HTML5 Video control are correctly recorded and played back.
8655

8756
![HTML5 Video control](../test/media/codedui_html5_video.png)
@@ -95,14 +64,7 @@ string Volume
9564
|**Unmute video**<br /><br /> Directly from control, or from controls context menu.|Unmute \<name> Video|HtmlVideo.Unmute()|
9665
|**Change volume of video**|Set volume of \<name> Video to 79%||
9766

98-
All the properties of HtmlAudio are available for HtmlVideo. In addition, the following three properties are also available. Assertion can be added on all of them.
99-
100-
```HTML
101-
string Poster
102-
string VideoHeight
103-
string VideoWidth
104-
105-
```
67+
See [HTMLVideoElement](https://developer.mozilla.org/docs/Web/HTML/Element/video) for a list of properties on which you can add an assertion.
10668

10769
**Search properties:** The search properties for `HtmlVideo` are `Id`, `Name` and `Title`.
10870

@@ -111,29 +73,8 @@ string VideoWidth
11173
> [!NOTE]
11274
> If you rewind or fast forward the video using -30s or +30s labels, this will be aggregated to seek to the appropriate time.
11375
114-
115-
### <a name="UsingHTML5ControlsCodedUITestsSlider"></a> Slider
116-
**Slider control:** Actions on the HTML5 Slider control are correctly recorded and played back.
117-
118-
![HTML5 Slider control](../test/media/codedui_html5_slider.png)
119-
120-
|Action|Recording|Generated Code|
121-
|------------|---------------|--------------------|
122-
|**Set a position in the slider**|Set position to \<x> in \<name> slider|HtmlSlider.ValueAsNumber=\<x>|
123-
124-
The following properties are available for HtmlSlider and assertion can be added on all of them:
125-
126-
```HTML
127-
string Disabled
128-
string Max
129-
string Min
130-
string Required
131-
string Step
132-
string ValueAsNumber
133-
```
134-
135-
### <a name="UsingHTML5ControlsCodedUITestsProgressBar"></a> ProgressBar
136-
**ProgressBar control:** The ProgressBar is a non-interactable control. You can add assertions on the `Value` and `Max` properties of this control.
76+
## ProgressBar
77+
**ProgressBar control:** The ProgressBar is a non-interactable control. You can add assertions on the `Value` and `Max` properties of this control. For more information, see [HTMLProgressElement](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress).
13778

13879
![HTML5 ProgressBar control](../test/media/codedui_html5_progressbar.png)
13980

docs/test/walkthrough-writing-unit-tests-for-cpp-dlls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ This walkthrough describes how to develop a native C++ DLL using test-first meth
324324
## See also
325325
326326
- [Adding unit tests to existing C++ applications](../test/unit-testing-existing-cpp-applications-with-test-explorer.md)
327-
- [Using Microsoft.VisualStudio.TestTools.CppUnitTestFramework](../test/microsoft-visualstudio-testtools-cppunittestframework-api-reference.md)
327+
- [Using Microsoft.VisualStudio.TestTools.CppUnitTestFramework](how-to-use-microsoft-test-framework-for-cpp.md)
328328
- [Debugging Native Code](../debugger/debugging-native-code.md)
329329
- [Walkthrough: Creating and Using a Dynamic Link Library (C++)](/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp)
330330
- [Importing and Exporting](/cpp/build/importing-and-exporting)

0 commit comments

Comments
 (0)