Test Driven JavaScript Development- P10 docx

Test Driven JavaScript Development- P10 docx

Test Driven JavaScript Development- P10 docx

... well with others.” Test- driven development, as described in Chapter 2, The Test- Driven Development Process, and the examples in Part III, Real-World Test- Driven Development in JavaScript, help ... Real-World Test- Driven Development in JavaScript. Before we dive into those examples, however, we will learn about unobtrusive JavaScript and feature detection in the closing two...

Ngày tải lên: 03/07/2014, 05:20

20 249 0
Test Driven JavaScript Development- P15 docx

Test Driven JavaScript Development- P15 docx

... Requests 279 TestCase("ReadyStateHandlerTest", { setUp: setUp, tearDown: tearDown, /* */ }); TestCase("RequestTest", { setUp: setUp, tearDown: tearDown, " ;test should use ... actually testing the internals of ajax.request. As we discussed as early as in Chapter 1, Automated Testing, voila, this kind of indirection in tests is generally not appreciated. Unit tests nee...

Ngày tải lên: 03/07/2014, 05:20

20 258 0
Test Driven JavaScript Development- P16 docx

Test Driven JavaScript Development- P16 docx

... This makes our tests mini integration tests, as discussed in Chapter 1, Automated Testing, with the pros and cons that follow. However, as we have just developed a reasonable test suite for ajax.request, ... object (function () { var ajax = tddjs.ajax; TestCase("PollerTest", { " ;test should be object": function () { assertObject(ajax.poller); } }); }()); This test jum...

Ngày tải lên: 03/07/2014, 05:20

20 207 0
test-driven javascript development

test-driven javascript development

... "function"; for (var test in tests) { if (!/ ^test/ .test( test)) { continue; } testCount++; try { if (hasSetup) { tests.setUp(); } tests [test] (); output (test, "#0c0"); if (hasTeardown) { tests.tearDown(); } // ... The Unit Test, and perform some tests on the fly. Testing strftime using unit tests simply requires us to run the unit test we already wrote in all the t...

Ngày tải lên: 24/04/2014, 16:09

525 530 0
Test Driven JavaScript Development- P5 doc

Test Driven JavaScript Development- P5 doc

... !this; }; TestCase("BooleanTest", { " ;test should flip value of true": function () { assertFalse(true.not()); assertFalse(Boolean.prototype.not.call(true)); }, " ;test should ... vice versa as Listing 5.10 shows. Listing 5.10 Modifying arguments TestCase("FormalParametersArgumentsTest", { " ;test dynamic relationship": function () { function modif...

Ngày tải lên: 03/07/2014, 05:20

20 309 0
Từ khóa:
w