| Index: html/templates/test-bad-index.html |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/html/templates/test-bad-index.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
| +<html lang="en"> |
| + <head> |
| + <title>Test for return value of DISP_E_BADINDEX</title> |
| + <script src="test-bad-index.js"></script> |
| + </head> |
| + |
| + <body onload="init()"> |
| + <h1>Test for return value of DISP_E_BADINDEX</h1> |
| + <ul> |
| + <li> |
| + Call <code>UserSettings().TestBadIndex(0)</code>. |
| + Should return normally. |
| + Result = <span id="result1"></span> |
| + </li> |
| + <li> |
| + Call <code>UserSettings().TestBadIndex(1)</code>. |
| + Should throw an exception. |
| + Result = <span id="result2"></span> |
| + </li> |
| + </ul> |
| + <h1 id="errorMessage" style="background-color:red;"></h1> |
| + <h1 id="indexException" style="background-color:green;"></h1> |
| + </body> |
| +</html> |