QA/TDAI/Gristmill/Mozmill Tutorial: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 216: Line 216:
   controller.assertJS(dataLengthAfter < dataLengthBefore);
   controller.assertJS(dataLengthAfter < dataLengthBefore);
}
}
</pre>


All this part is very similar, except the very last line.  On the last line, we assert that the expression 'lengthAfter < lengthBefore' is true.  If that is true, then the test will pass.  If that fails then the test will fail.
All this part is very similar, except the very last line.  On the last line, we assert that the expression 'lengthAfter < lengthBefore' is true.  If that is true, then the test will pass.  If that fails then the test will fail.


There is a big hole in this test.  The visual test requires that nothing be drawn.  This just tests that '''less is drawn''' when javascript is off.  So, as I said earlier, it would be better to use a different web page for this test, but I wanted to automate the litmus test without changing it for example's sake.
There is a big hole in this test.  The visual test requires that nothing be drawn.  This just tests that '''less is drawn''' when javascript is off.  So, as I said earlier, it would be better to use a different web page for this test, but I wanted to automate the litmus test without changing it for example's sake.
Confirmed users
3,816

edits

Navigation menu