G
Garrett Smith
http://blogs.msdn.com/b/ie/archive/...-same-code-and-a-standardized-test-suite.aspx
I Downloaded The Test Suite: http://es5conform.codeplex.com/
I can't get it to work -- where did I go wrong?
readme.text states:
| Running the tests
| -----------------
| If this folder contains a file named runtests.html open it
| with the browser you want to test.
| Otherwise, go to to folder TestHarness
| at the cmd prompt run build.bat
| Your tests should run in the browser.
| Thats it.
|
| Inspecting the results
| ----------------------
| The test results are reported in the browser (Look for
| the testName that you gave for your test).
| Thats it.
I see the folder contains runtests.html, so I fire that up and get
errors right away. Well that didn't work.
Looking at runtests.html source code and I see:
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<script type="text/javascript" src="sth.js"></script>
<script>
var ES5Harness = activeSth;
</script>
-IE=8 mode? What for?
I see the folder does not contain "sth.js", so that explains the script
errors.
Looking back at the readme:
| Otherwise, go to to folder TestHarness
| at the cmd prompt run build.bat
I'm on windows, so I actually can run build.bat. I double-click it and
see the error:
"Windows cannot find test.html. Make sure you typed the name correctly,
and then try again."
What am I doing wrong here?
Garrett
I Downloaded The Test Suite: http://es5conform.codeplex.com/
I can't get it to work -- where did I go wrong?
readme.text states:
| Running the tests
| -----------------
| If this folder contains a file named runtests.html open it
| with the browser you want to test.
| Otherwise, go to to folder TestHarness
| at the cmd prompt run build.bat
| Your tests should run in the browser.
| Thats it.
|
| Inspecting the results
| ----------------------
| The test results are reported in the browser (Look for
| the testName that you gave for your test).
| Thats it.
I see the folder contains runtests.html, so I fire that up and get
errors right away. Well that didn't work.
Looking at runtests.html source code and I see:
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<script type="text/javascript" src="sth.js"></script>
<script>
var ES5Harness = activeSth;
</script>
-IE=8 mode? What for?
I see the folder does not contain "sth.js", so that explains the script
errors.
Looking back at the readme:
| Otherwise, go to to folder TestHarness
| at the cmd prompt run build.bat
I'm on windows, so I actually can run build.bat. I double-click it and
see the error:
"Windows cannot find test.html. Make sure you typed the name correctly,
and then try again."
What am I doing wrong here?
Garrett