Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Test Driven JavaScript Development- P26:This book is about programming JavaScript for the real world, using the techniques and workflow suggested by Test-Driven Development. It is about gaining confidence in your code through test coverage, and gaining the ability to fearlessly refactor and organically evolve your code base. It is about writing modular and testable code. It is about writing JavaScript that works in a wide variety of environments and that doesn’t get in your user’s way. | Index 493 additions of 297 definition for 297 one-liners and 312-313 polling for data and 312-313 stateful functions 107-112. See also iterators generating uid s 107-109 iterators 109-112 memoization 112-115 module patterns 107 state verification of test doubles 442 static files 408-411 bootstrap scripts and 410-411 callbacks and 409 chapp s servers and 409 CSS files 410 HTML in 409-410 status codes 354-355 status testing for APIs 274-277 coding in 276-277 duplication reduction and 274-275 fake requests and 275 request helpers for 275-276 success failure callbacks and 277 TDD and 276 storage with message lists 417 for Node.js 358-366 of notify method 244-245 for uid s variable states 109 unit tests and 4 in user forms 403 strftime 5-9 Date.prototype.strftime 7 defining of 205 feature detection in 214 Firebug session and 7 implementation of 205-206 object detection and 204-206 restructuring of 12 starting point for 5-6 test cases with 12 test pages with 8 use of 205-206 YUI test and 38-40 strict mode in ECMAScript 5 160 171-174 changes 172-174 enabling of 171-172 formal parameters in 172-173 functions in 172-174 global object 171 implicit globals in 172 local 171-172 objects in 174 properties in 174 restrictions in 174 variables in 174 String.prototype.trim method 24-25 function expression and 85 successful testing of 27 29 test failure and 25 stubbing 257-263 443-445 447-452 AJAX and 248-249 automated 258-260 262-263 behavior verification with 451-452 470-472 code paths from 444-445 with controllers 348-349 353 Date 316-319 DOM and 444 feature detection and 263 global methods and 448 improved 261-263 inconvenient interfaces and 444 libraries 447-452 with long polling 316-320 manual 257-258 mocks v. 457-458 Node.js and 452 Observer pattern and 445 in POST requests 284 saboteurs 445 in scrolling 432 for tddjs.ajax.poller 298-299 test doubles and 443-445 447-452 testing timers and 303 305 test spies with 445-446 throwaway 448 with user forms 397 403 with .