OReilly Programming HTML5 Applications (2011).pdf

(1414 KB) Pobierz
Programming HTML5 Applications
Programming HTML5 Applications
Programming HTML5 Applications
Zachary Kessin
Beijing Cambridge Farnham Köln Sebastopol Tokyo
743789568.001.png
 
Programming HTML5 Applications
by Zachary Kessin
Printing History:
ISBN: 978-1-449-39908-5
1315947718
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1. The Web as Application Platform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Developing Web Applications
1
Adding Power to Web Applications
3
2. The Power of JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
JavaScript's Triumph
5
Non-blocking I/O and Callbacks
7
Lambda Functions Are Powerful
8
Closure
10
Functional Programming
12
Prototypes and How to Expand Objects
15
Expanding Functions with Prototypes
17
Currying and Object Parameters
20
Array iteration operations
21
You Can Extend Objects, Too
24
3. Testing Javascript applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
QUnit
28
A Simple Example
28
Testing with QUnit
30
Mocking and Stubs
31
Selenium
31
Selenium Commands
34
Constructing tests With the Selenium IDE
37
Automatically running tests
37
Selenese Command Programing Interface
41
Running QUnit from Selenium
43
Selenium RC and a test farm
45
v
743789568.002.png 743789568.003.png
Zgłoś jeśli naruszono regulamin