Can someone please tell me how can i test my web page in FireUnit?
http://ejohn.org/blog/fireunit/
Can someone please tell me how can i test my web page in FireUnit?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I just played around with it last week and wrote a few test cases. You’ll want to create a test case file and include it as part of your page. (perhaps use a conditional like “debug=true” to
prevent inclusion during production)
I found the .Compare method to be the most useful. You can write stuff like:
Note that since you are comparing strings here, if you want to do JSON instead, you’ll have to JSON.stringify the output first.
Upon running the page with the included js file, you’ll see test results under the “Test” panel of firebug. (assuming you have the extension installed)