Index
A
- acceptance criteria
- about / Jasmine basics and thinking in BDD
- writing / Jasmine basics and thinking in BDD
- implementing / Setup and teardown
- actual value
- addInvestment method / Integrate Views with observers
- addMatcher function
- about / Custom matchers
- afterEach function
- about / Setup and teardown
- AJAX
- used, for loading HTML fixtures / Using HTML fixtures
- AJAX request, Backbone collections
- about / Sync and AJAX requests
- AJAX request, Backbone model
- about / Sync and AJAX requests
- AMD
- about / RequireJS
- andCallFake function / Jasmine Stubs
- appendLoadFixtures(fixtureUrl[, fixtureUrl,
])
- about / Using HTML fixtures
- appendSetFixtures(html)
- about / Using HTML fixtures
- assertion
- attribute, Backbone model
- about / The model attributes
B
- Backbone collection
- URL, for documentation / Sync and AJAX requests
- Backbone collections
- about / Testing Backbone collections
- features / Testing Backbone collections
- testing / Testing Backbone collections
- declaring / Declaring a new collection
- AJAX request / Sync and AJAX requests
- Sync request / Sync and AJAX requests
- Backbone model
- about / The Backbone model
- declaring / Declaring a new model
- attribute / The model attributes
- default attribute value / Default attribute values
- events / Events
- Sync request / Sync and AJAX requests
- AJAX request / Sync and AJAX requests
- Backbone routers
- about / Testing Backbone routers
- testing / Testing Backbone routers
- defining / Defining a new router
- routes, defining / Defining routes
- using / Using routers
- routing / Routers should only route
- Backbone variable / Using non AMD dependencies with Shim
- Backbone View
- testing / Testing Backbone Views
- declaring / Declaring a new View
- el property / The el property
- rendering / Rendering
- updating / Updating the View on model changes
- DOM events, binding / Binding DOM events
- baseUrl parameter / Optimizing for production
- beforeEach function
- about / Setup and teardown
- Behavior-Driven Development (BDD)
- Behavior-Driven Development framework
- behavior checking
- performing, Jasmine Spy used / The "bare" Spy
- Build.js file / A RequireJS optimizer task
- built-in matchers
- about / Built-in matchers
- toEqual built-in matcher / The toEqual built-in matcher
- toBe built-in matcher / The toBe built-in matcher
- toBeTruthy built-in matcher / The toBeTruthy and toBeFalsy matchers
- toBeFalsy built-in matcher / The toBeTruthy and toBeFalsy matchers
- toBeUndefined built-in matcher / The toBeUndefined, toBeNull, and toBeNaN built-in matchers
- toBeNull built-in matcher / The toBeUndefined, toBeNull, and toBeNaN built-in matchers
- toBeNaN built-in matcher / The toBeUndefined, toBeNull, and toBeNaN built-in matchers
- toBeDefined built-in matcher / The toBeDefined built-in matcher
- toContain built-in matcher / The toContain built-in matcher
- toMatch built-in matcher / The toMatch built-in matcher
- toBeLessThan built-in matcher / The toBeLessThan and toBeGreaterThan built-in matchers
- toBeGreaterThan built-in matcher / The toBeLessThan and toBeGreaterThan built-in matchers
- toThrow built-in matcher / The toThrow built-in matcher
C
- callback parameter / Jasmine Stubs
- Chrome
- HTML fixtures, using with / Using HTML fixtures
- reference link / Using HTML fixtures
- Chrome browser
- about / Coding the server
- console.log function
- about / JavaScript – the bad parts
- create function
- about / Spy an object's functions
- create method
- about / Integrate Views with observers
- custom matchers
D
- default attribute value
- about / Default attribute values
- define/require function / Using non AMD dependencies with Shim
- describe function
- about / Nested describes
- destroy function
- about / Binding DOM events
- DOM element
- about / The View should encapsulate a DOM element
- encapsulating / The View should encapsulate a DOM element
- DOM events
- about / Testing DOM events
- testing / Testing DOM events
- binding / Binding DOM events
E
- ECMAScript
- about / JavaScript – the bad parts
- el property
- about / The el property
- Envjs
- about / Downloading and first run
- equals operator
- about / The toBe built-in matcher
- events, Backbone model
- events object
- about / Binding DOM events
- expected value
- expect function
F
- Fake server / A Fake server
- FakeServer function / Sinon.JS
- Fake XMLHttpRequest / A Fake XMLHttpRequest
- FakeXMLHttpRequest function / Sinon.JS
- FakeXMLHttpRequest instance / A Fake server
- FakeXMLHttpRequest object / Sinon.JS, A Fake XMLHttpRequest
- fetch function / Jasmine Stubs
- fetchRequest variable / A Fake XMLHttpRequest
- find function
G
- $.getJSON function / Jasmine Stubs
- getJSON function / Jasmine Stubs
- getSymbol method
- global Jasmine function
- describe function / Jasmine basics and thinking in BDD
- about / Jasmine basics and thinking in BDD
- it function / Jasmine basics and thinking in BDD
- expect function / Jasmine basics and thinking in BDD
- beforeEach function / Setup and teardown
- afterEach function / Setup and teardown
- Grunt
- about / Grunt
- installing / Installation
- setup / Project setup
- RequireJS optimizer task / A RequireJS optimizer task
- Jasmine task / A Jasmine task
- grunt-exec plugin / A Jasmine task
H
- headless browser
- about / Downloading and first run
- HTML fixture
- using / Using HTML fixtures
- about / Using HTML fixtures
- HTML fixtures
- using, with Chrome / Using HTML fixtures
- using / Using HTML fixtures
- loading, AJAX used / Using HTML fixtures
I
- idAttribute attribute
- about / Sync and AJAX requests
- immediately invoked function expression (IIFE)
- about / The module pattern
- installation, Node.js / Installing Node.js
- investment
- Investment() function
- investment tracker application
- developing / The Investment Tracker application
- it function
J
- Jasmine
- about / Jasmine and Behavior-Driven Development
- downloading / Downloading and first run
- URL, for downloading / Downloading and first run
- matchers / Understanding matchers
- jQuery matchers / Testing Views with jQuery matchers
- URL / Running your tests without opening a browser
- Jasmine, jQuery matchers
- URL / More matchers
- Jasmine matchers
- built-in matchers / Built-in matchers
- Jasmine Spy
- used, for performing behavior checking / The "bare" Spy
- used, for restoring the object original behavior / Spy an object's functions
- Jasmine Stubs
- about / Jasmine Stubs
- Jasmine task / A Jasmine task
- JavaScript
- pitfalls / JavaScript – the bad parts
- JavaScript language
- about / JavaScript – the bad parts
- JavaScript Object
- about / JavaScript – the bad parts
- jQuery matchers
- View, testing with / Testing Views with jQuery matchers
- about / Testing Views with jQuery matchers
- custom matchers / Testing Views with jQuery matchers
- toBe jQuery matcher / The toBe jQuery matcher
- toContainHtml jQuery matcher / The toContainHtml jQuery matcher
- toContain jQuery matcher / The toContain jQuery matcher
- toHaveValue jQuery matcher / The toHaveValue jQuery matcher
- toHaveAttr jQuery matcher / The toHaveAttr jQuery matcher
- toBeFocused jQuery matcher / The toBeFocused jQuery matcher
- toBeDisabled jQuery matcher / The toBeDisabled jQuery matcher
L
- listenTo function
- listView object / Integrate Views with observers
M
- matcher
- matchers, Jasmine
- about / Understanding matchers
- custom matchers / Custom matchers
- module
- testing / Testing a module
- module definition / Module definition
- module pattern
- about / The module pattern
- MVC framework
N
- named parameters
- about / Setup and teardown
- nested describes
- about / Nested describes
- setup function / Setup and teardown
- teardown function / Setup and teardown
- NewInvestmentView class
- Node.js
- about / Setting up the Scenario
- installing / Installing Node.js
- URL / Installing Node.js
- Node.js package / A RequireJS optimizer task
- non AMD dependencies
- used, with Shim / Using non AMD dependencies with Shim
- NPM dependencies
- managing / Managing NPM dependencies
O
- Object.seal function
- about / JavaScript – the bad parts
- object original behavior
- restoring, Jasmine Spy used / Spy an object's functions
- observers
- View, integrating with / Integrate Views with observers
- onCreate function
- about / Integrate Views with observers
- optimizer task / A RequireJS optimizer task
P
- package.json file / Managing NPM dependencies
- PhantomJS
- about / Downloading and first run
- testing with / Headless testing with PhantomJS
- installing / Downloading and installing PhantomJS
- URL / Downloading and installing PhantomJS
- tests, executing / Running your tests without opening a browser
- phantomjs command / Downloading and installing PhantomJS
- preloadFixtures() function
- about / Using HTML fixtures
- production
- optimizing for / Optimizing for production
R
- readFixtures(fixtureUrl[, fixtureUrl,
])
- about / Using HTML fixtures
- remove function
- render function
- about / Rendering, Updating the View on model changes
- implementing / Rendering
- RequireConfig.js file / Using non AMD dependencies with Shim
- RequireJS
- about / RequireJS
- module definition / Module definition
- setting up / Project setup
- SpecRunner.JS file / The new SpecRunner.JS file
- configuring / The RequireJS configuration
- module, testing / Testing a module
- production optimization / Optimizing for production
- RequireJS configuration
- non AMD dependencies, using with Shim / Using non AMD dependencies with Shim
- requirejs plugin / A Jasmine task
- respond function / A Fake XMLHttpRequest
- respondWith function / A Fake server
- return of investment attribute
- about / Events
- routes
- defining / Defining routes
- runner
- about / Downloading and first run
- runs() function
- about / The runs() function
S
- Same Origin Policy
- about / Using HTML fixtures, Coding the server
- server
- creating / Coding the server
- running / Running the server
- set function
- about / The model attributes
- setup function
- about / Setup and teardown, Using HTML fixtures
- shared behavior
- spec, coding with / Coding a spec with shared behavior
- Shim
- non AMD dependencies, using / Using non AMD dependencies with Shim
- sinon.fakeServer.create function / A Fake server
- Sinon.JS
- about / Sinon.JS
- installing / Installing Sinon.JS
- URL / Installing Sinon.JS
- Fake XMLHttpRequest / A Fake XMLHttpRequest
- Fake server / A Fake server
- Sinon.JS library / Jasmine Stubs
- sinon.useFakeXMLHttpRequest function / A Fake XMLHttpRequest
- spec
- about / Jasmine and Behavior-Driven Development
- coding / Jasmine basics and thinking in BDD
- coding, with shared behavior / Coding a spec with shared behavior
- writing / Writing the spec
- spec/SpecRunner.js file / Optimizing for production
- spec file
- creating / Jasmine basics and thinking in BDD
- SpecRunner.html file
- about / Downloading and first run
- SpecRunner.JS file / The new SpecRunner.JS file
- specs
- executing / Watch for changes and run the specs
- spyOn function / Jasmine Stubs
- spyOn global Jasmine function
- about / Spy an object's functions
- stock.fetch() / A Fake server
- stock.fetch function / A Fake XMLHttpRequest
- Stock function
- stockSymbol parameter / A Fake server
- strict equals operator
- about / The toBe built-in matcher
- Sync request, Backbone collections
- about / Sync and AJAX requests
- Sync request, Backbone model
- about / Sync and AJAX requests
- URL, for documentation / Sync and AJAX requests
T
- teardown function
- about / Setup and teardown
- Test-Driven Development (TDD)
- test fixture
- about / Using HTML fixtures
- tests
- executing / Running your tests without opening a browser
- test unit
- toBe built-in matcher
- about / The toBe built-in matcher
- toBeDefined built-in matcher
- about / The toBeDefined built-in matcher
- toBeDisabled jQuery matcher
- about / The toBeDisabled jQuery matcher
- toBeFalsy built-in matcher
- toBeFocused jQuery matcher
- about / The toBeFocused jQuery matcher
- toBeGreaterThan built-in matcher
- toBe jQuery matcher
- about / The toBe jQuery matcher
- toBeLessThan built-in matcher
- toBe matchers
- about / Understanding matchers
- toBeNaN built-in matcher
- toBeNull built-in matcher
- toBeTruthy built-in matcher
- toBeTruthy matchers
- about / Understanding matchers
- toBeUndefined built-in matcher
- toContain built-in matcher
- about / The toContain built-in matcher
- toContainHtml jQuery matcher
- about / The toContainHtml jQuery matcher
- toContain jQuery matcher
- about / The toContain jQuery matcher
- toEqual built-in matcher
- about / The toEqual built-in matcher
- toEqual matchers
- about / Understanding matchers
- toExist custom matcher
- toHaveAttr jQuery matcher
- about / The toHaveAttr jQuery matcher
- toHaveValue jQuery matcher
- about / The toHaveValue jQuery matcher
- toMatch built-in matcher
- about / The toMatch built-in matcher
- toThrow built-in matcher
- about / The toThrow built-in matcher
U
- urlRoot attribute
- about / Sync and AJAX requests
V
- View
- about / Thinking in terms of components (Views)
- coding / Basic View coding rules
- DOM element, encapsulating / The View should encapsulate a DOM element
- integrating, with observers / Integrate Views with observers
- testing, with jQuery matchers / Testing Views with jQuery matchers
- View, coding
- basic rules / Basic View coding rules
- virtual attribute
- about / Events
W
- waitsFor() function
- about / The waitsFor() function
- parameters / The waitsFor() function
X
- XMLHttpRequest / A Fake XMLHttpRequest
- XMLHttpRequest object / A Fake XMLHttpRequest