售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Web App Testing Using Knockout.JS
Web App Testing Using Knockout.JS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Web Application Testing in the Modern Web
Software testing
The modern Web
Escaping from the jQuery-style development
Presentation design patterns
Summary
2. The Knockout.JS UI Framework Explained
Hello Knockout.JS
Automatic synchronization between View and ViewModel
The ViewModel in detail
Observables
Computed observables
Observable arrays
Data-binding in detail
The data-binding syntax
Text and appearance bindings
Conditional and loop bindings
HTML templating
The binding context
Virtual bindings
Form controls bindings
Custom bindings
Summary
3. The Jasmine Unit Testing Framework Explained
Unit testing style
Hello Jasmine
Suites and specifications
Suites
Specifications
Setup and teardown
Expectations and matchers
Spies
Spy initialization options
Spy tracking properties
An alternative spy initialization API
Testing asynchronous code
Summary
4. Unit Testing Strategies
My Todo sample application
The solution structure
Idiomatic JavaScript patterns
Constructor functions
The module pattern
MVVM and unit testing
Effective separation between the View and ViewModel
The My Todo web application
The new to-do item form
The event bus
Managing services and third-party libraries
The to-do item list
The main page View
Unit testing
Integration testing
Use case testing
Summary
5. Setting Up an Effective Testing Environment
The NodeJS ecosystem
Task automation with GulpJS
JSLint and unit testing
The build system installation
The build system configuration
Unit testing automation with Karma (in GulpJS)
The testing environment installation
The testing environment configuration
Code coverage
User interface testing with PhantomJS
Summary
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜