Fix page titles.
This commit is contained in:
parent
127fa05a6d
commit
5b7da6a36c
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: Jasmine Release Notes
|
title: Jasmine User Guide
|
||||||
---
|
---
|
||||||
=======
|
=======
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ Specs are grouped in Suites. Suites are defined using the global `describe()` f
|
|||||||
it('has a test', function () {
|
it('has a test', function () {
|
||||||
...
|
...
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has another test', function () {
|
it('has another test', function () {
|
||||||
...
|
...
|
||||||
});
|
});
|
||||||
@ -137,12 +137,12 @@ Suites are executed in the order in which `describe()` calls are made, usually i
|
|||||||
|
|
||||||
describe('A suite with some variables', function () {
|
describe('A suite with some variables', function () {
|
||||||
var bar = 0
|
var bar = 0
|
||||||
|
|
||||||
it('has a test', function () {
|
it('has a test', function () {
|
||||||
bar++;
|
bar++;
|
||||||
expect(bar).toEqual(1);
|
expect(bar).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has another test', function () {
|
it('has another test', function () {
|
||||||
bar++;
|
bar++;
|
||||||
expect(bar).toEqual(2);
|
expect(bar).toEqual(2);
|
||||||
@ -245,26 +245,26 @@ A spec may ask Jasmine to execute some code after the spec has finished running;
|
|||||||
Jasmine supports nested describes. An example:
|
Jasmine supports nested describes. An example:
|
||||||
|
|
||||||
describe('some suite', function () {
|
describe('some suite', function () {
|
||||||
|
|
||||||
var suiteWideFoo;
|
var suiteWideFoo;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
suiteWideFoo = 0;
|
suiteWideFoo = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('some nested suite', function() {
|
describe('some nested suite', function() {
|
||||||
var nestedSuiteBar;
|
var nestedSuiteBar;
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
nestedSuiteBar=1;
|
nestedSuiteBar=1;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('nested expectation', function () {
|
it('nested expectation', function () {
|
||||||
expect(suiteWideFoo).toEqual(0);
|
expect(suiteWideFoo).toEqual(0);
|
||||||
expect(nestedSuiteBar).toEqual(1);
|
expect(nestedSuiteBar).toEqual(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('top-level describe', function () {
|
it('top-level describe', function () {
|
||||||
expect(suiteWideFoo).toEqual(0);
|
expect(suiteWideFoo).toEqual(0);
|
||||||
expect(nestedSuiteBar).toEqual(undefined);
|
expect(nestedSuiteBar).toEqual(undefined);
|
||||||
@ -443,13 +443,13 @@ timeout before the next block is run. You supply a time to wait before the next
|
|||||||
that.foo++;
|
that.foo++;
|
||||||
}, 250);
|
}, 250);
|
||||||
});
|
});
|
||||||
|
|
||||||
runs(function () {
|
runs(function () {
|
||||||
this.expects(this.foo).toEqual(0);
|
this.expects(this.foo).toEqual(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
waits(500);
|
waits(500);
|
||||||
|
|
||||||
runs(function () {
|
runs(function () {
|
||||||
this.expects(this.foo).toEqual(1);
|
this.expects(this.foo).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: Jasmine Javascript Testing Framework
|
title: Jasmine: Javascript Testing Framework
|
||||||
---
|
---
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
h2 { border-top: none; }
|
h2 { border-top: none; }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: Jasmine Javascript Testing Framework
|
title: Jasmine Release Notes
|
||||||
---
|
---
|
||||||
<h1>Release Notes</h1>
|
<h1>Release Notes</h1>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user