Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: html/templates/test-bad-index.html

Issue 29331713: TEST ONLY -- Verify behavior of DISP_E_BADINDEX in the IE JavaScript runtime (Closed)
Patch Set: Created Dec. 1, 2015, 5:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | html/templates/test-bad-index.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | html/templates/test-bad-index.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld