diff --git a/.gitignore b/.gitignore
index 0345637d..2b02a708 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
.idea/
.svn/
-dist/
.DS_Store
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000..91b24fcd
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "pages"]
+ path = pages
+ url = git@github.com:pivotal/jasmine.git
diff --git a/README.markdown b/README.markdown
index 006c2397..23f009ec 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,4 +1,4 @@
-Jasmine
+[Jasmine](http://pivotal.github.com/jasmine)
=======
**A JavaScript Testing Framework**
@@ -479,4 +479,4 @@ We welcome your contributions! Jasmine is currently maintained by Davis Frank ([
## Acknowledgments
* A big shout out to the various JavaScript test framework authors, especially TJ for [JSpec](http://github.com/visionmedia/jspec/tree/master) - we played with it a bit before deciding that we really needed to roll our own.
* Thanks to Pivot [Jessica Miller](http://www.jessicamillerworks.com/) for our fancy pass/fail/pending icons
-* Huge contributions have been made by [Erik Hanson](mailto:erik@pivotallabs.com), [Adam Abrons](mailto:adam@pivotallabs.com) and [Carl Jackson](mailto:carl@pivotallabs.com), and many other Pivots.
+* Huge contributions have been made by [Adam Abrons](mailto:adam@pivotallabs.com), [Lee Byrd](mailto:lee@pivotallabs.com), [Erik Hanson](mailto:erik@pivotallabs.com), and [Carl Jackson](mailto:carl@pivotallabs.com), and many other Pivots.
diff --git a/Rakefile b/Rakefile
index b902ecec..54b24d86 100644
--- a/Rakefile
+++ b/Rakefile
@@ -28,7 +28,7 @@ end
namespace :jasmine do
desc 'Prepares for distribution'
- task :dist => ['jasmine:build', 'jasmine:doc', 'jasmine:build_example_project']
+ task :dist => ['jasmine:build', 'jasmine:doc', 'jasmine:build_example_project', 'jasmine:fill_index_downloads']
desc 'Check jasmine sources for coding problems'
task :lint do
@@ -90,23 +90,31 @@ jasmine.version_= {
FileUtils.cp("src/html/jasmine.css", "lib/jasmine.css")
end
+ task :need_pages_submodule do
+ unless File.exists?('pages/index.html')
+ raise "Jasmine pages submodule isn't present. Run git submodule update --init"
+ end
+ end
+
desc "Build jasmine documentation"
- task :doc do
+ task :doc => :need_pages_submodule do
puts 'Creating Jasmine Documentation'
require 'rubygems'
#sudo gem install ragaskar-jsdoc_helper
require 'jsdoc_helper'
+ FileUtils.rm_r "pages/jsdoc", :force => true
JsdocHelper::Rake::Task.new(:lambda_jsdoc) do |t|
t[:files] = jasmine_sources << jasmine_html_sources
t[:options] = "-a"
+ t[:out] = "pages/jsdoc"
end
Rake::Task[:lambda_jsdoc].invoke
end
desc "Build example project"
- task :build_example_project do
+ task :build_example_project => :need_pages_submodule do
require 'tmpdir'
temp_dir = File.join(Dir.tmpdir, 'jasmine-standalone-project')
@@ -128,13 +136,41 @@ jasmine.version_= {
FileUtils.cp(File.join(root, src), File.join(lib_dir, dest))
end
- dist_dir = File.join(root, 'dist')
+ dist_dir = File.join(root, 'pages/downloads')
zip_file_name = File.join(dist_dir, "jasmine-standalone-#{jasmine_version}.zip")
puts "Zipping Example Project and moving to #{zip_file_name}"
- FileUtils.rm_r dist_dir if File.exists?(dist_dir)
- Dir.mkdir(dist_dir)
+ FileUtils.mkdir(dist_dir) unless File.exist?(dist_dir)
+ if File.exist?(zip_file_name)
+ puts "WARNING!!! #{zip_file_name} already exists!"
+ FileUtils.rm(zip_file_name)
+ end
exec "cd #{temp_dir} && zip -r #{zip_file_name} . -x .[a-zA-Z0-9]*"
end
+
+ task :fill_index_downloads do
+ require 'digest/sha1'
+
+ download_html = "\n"
+ download_html += "
\n | Version | Size | Date | SHA1 |
\n"
+ Dir.glob('pages/downloads/*.zip').sort.reverse.each do |f|
+ sha1 = Digest::SHA1.hexdigest File.read(f)
+
+ fn = f.sub(/^pages\//, '')
+ version = /jasmine-standalone-(.*).zip/.match(f)[1]
+ download_html += "#{fn.sub(/downloads\//, '')} | "
+ download_html += "#{version} | \n"
+ download_html += "#{File.size(f) / 1024}k | \n"
+ download_html += "#{File.mtime(f).strftime("%Y/%m/%d %H:%M:%S")} | \n"
+ download_html += "#{sha1} | \n"
+ end
+ download_html += "
\n"
+
+ index_page = File.read('pages/index.html')
+ matcher = /.*/m
+ index_page = index_page.sub(matcher, download_html)
+ File.open('pages/index.html', 'w') {|f| f.write(index_page)}
+ puts "rewrote that file"
+ end
end
task :jasmine => ['jasmine:dist']
diff --git a/doc/files.html b/doc/files.html
deleted file mode 100644
index 52d15593..00000000
--- a/doc/files.html
+++ /dev/null
@@ -1,448 +0,0 @@
-
-
-
-
-
- JsDoc Reference - File Index
-
-
-
-
-
-
-
-
-
-
-
-
File Index
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:14 GMT-0700 (PDT)
-
-
-
\ No newline at end of file
diff --git a/doc/index.html b/doc/index.html
deleted file mode 100644
index d50e8f80..00000000
--- a/doc/index.html
+++ /dev/null
@@ -1,322 +0,0 @@
-
-
-
-
-
- JsDoc Reference - Index
-
-
-
-
-
-
-
-
-
-
-
-
Class Index
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:14 GMT-0700 (PDT)
-
-
-
\ No newline at end of file
diff --git a/doc/symbols/_global_.html b/doc/symbols/_global_.html
deleted file mode 100644
index 4aff986e..00000000
--- a/doc/symbols/_global_.html
+++ /dev/null
@@ -1,1122 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - _global_
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Built-In Namespace _global_
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
- A function that is called after each spec in a suite.
- |
-
-
-
- | |
-
-
- A function that is called before each spec in a suite.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
- describe(description, specDefinitions)
-
- Defines a suite of specifications.
- |
-
-
-
- | |
-
-
- Starts a chain for a Jasmine expectation.
- |
-
-
-
- | |
-
-
- Creates a Jasmine spec that will be added to the current suite.
- |
-
-
-
- | |
-
-
- Defines part of a jasmine spec.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
- Function that installs a spy on an existing object's method name.
- |
-
-
-
- | |
-
-
- Waits for a timeout before moving to the next runs()-defined block.
- |
-
-
-
- | |
-
- waitsFor(timeout, latchFunction, message)
-
- Waits for the latchFunction to return true before proceeding to the next runs()-defined block.
- |
-
-
-
- | |
-
-
- Disables a suite of specifications.
- |
-
-
-
- | |
-
-
- Creates a disabled Jasmine spec.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- afterEach(afterEachFunction)
-
-
-
- A function that is called after each spec in a suite.
-
-Used for restoring any state that is hijacked during spec execution.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} afterEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- beforeEach(beforeEachFunction)
-
-
-
- A function that is called before each spec in a suite.
-
-Used for spec setup, including validating assumptions.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} beforeEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- clearInterval(timeoutKey)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- timeoutKey
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- clearTimeout(timeoutKey)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- timeoutKey
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- describe(description, specDefinitions)
-
-
-
- Defines a suite of specifications.
-
-Stores the description and all defined specs in the Jasmine environment as one suite of specs. Variables declared
-are accessible by calls to beforeEach, it, and afterEach. Describe blocks can be nested, allowing for specialization
-of setup in some tests.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
// TODO: a simple suite
-
-// TODO: a simple suite with a nested describe block
-
-
-
-
-
- - Parameters:
-
- -
- {String} description
-
-
- - A string, usually the class under test.
-
- -
- {Function} specDefinitions
-
-
- - function that defines several specs.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- expect(actual)
-
-
-
- Starts a chain for a Jasmine expectation.
-
-It is passed an Object that is the actual value and should chain to one of the many
-jasmine.Matchers functions.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} actual
-
-
- - Actual value to test against and expected value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- it(desc, func)
-
-
-
- Creates a Jasmine spec that will be added to the current suite.
-
-// TODO: pending tests
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
it('should be true', function() {
- expect(true).toEqual(true);
-});
-
-
-
-
-
- - Parameters:
-
- -
- {String} desc
-
-
- - description of this specification
-
- -
- {Function} func
-
-
- - defines the preconditions and expectations of the spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- runs(func)
-
-
-
- Defines part of a jasmine spec. Used in cominbination with waits or waitsFor in asynchrnous specs.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} func
-
-
- - Function that defines part of a jasmine spec.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setInterval(funcToCall, millis)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- funcToCall
-
-
-
-
- -
- millis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setTimeout(funcToCall, millis)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- funcToCall
-
-
-
-
- -
- millis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- spyOn(obj, methodName)
-
-
-
- Function that installs a spy on an existing object's method name. Used within a Spec to create a spy.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
// spy example
-var foo = {
- not: function(bool) { return !bool; }
-}
-spyOn(foo, 'not'); // actual foo.not will not be called, execution stops
-
-
-
-
-
- - Parameters:
-
- -
- obj
-
-
-
-
- -
- methodName
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - a Jasmine spy that can be chained with all spy methods
-
-
-
-
-
-
- - See:
-
- - jasmine.createSpy
-
-
-
-
-
-
-
-
-
-
- waits(timeout)
-
-
-
- Waits for a timeout before moving to the next runs()-defined block.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} timeout
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- waitsFor(timeout, latchFunction, message)
-
-
-
- Waits for the latchFunction to return true before proceeding to the next runs()-defined block.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} timeout
-
-
-
-
- -
- {Function} latchFunction
-
-
-
-
- -
- {String} message
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- xdescribe(description, specDefinitions)
-
-
-
- Disables a suite of specifications. Used to disable some suites in a file, or files, temporarily during development.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} description
-
-
- - A string, usually the class under test.
-
- -
- {Function} specDefinitions
-
-
- - function that defines several specs.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- xit(desc, func)
-
-
-
- Creates a
disabled Jasmine spec.
-
-A convenience method that allows existing specs to be disabled temporarily during development.
-
-
-
Defined in: base.js.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} desc
-
-
- - description of this specification
-
- -
- {Function} func
-
-
- - defines the preconditions and expectations of the spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:12 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Block.html b/doc/symbols/jasmine.Block.html
deleted file mode 100644
index a71e7cc0..00000000
--- a/doc/symbols/jasmine.Block.html
+++ /dev/null
@@ -1,417 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Block
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Block
-
-
-
-
-
-
-
-
-
-
Defined in: Block.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- Blocks are functions with executable code that make up a spec.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Block(env, func, spec)
-
-
-
- Blocks are functions with executable code that make up a spec.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.Env} env
-
-
-
-
- -
- {Function} func
-
-
-
-
- -
- {jasmine.Spec} spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- execute(onComplete)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- onComplete
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:12 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Clock.html b/doc/symbols/jasmine.Clock.html
deleted file mode 100644
index ce0fdf9f..00000000
--- a/doc/symbols/jasmine.Clock.html
+++ /dev/null
@@ -1,712 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Clock
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace jasmine.Clock
-
-
-
-
-
-
-
-
-
-
Defined in: mock-timeout.js.
-
-
-
-
-
-
- Namespace Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
- jasmine.Clock. tick(millis)
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- jasmine.Clock
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
<static>
-
-
- jasmine.Clock.assertInstalled()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.installMock()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.isInstalled()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.reset()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.runFunctionsWithinRange(oldMillis, nowMillis)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- oldMillis
-
-
-
-
- -
- nowMillis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.scheduleFunction(timeoutKey, funcToCall, millis, recurring)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- timeoutKey
-
-
-
-
- -
- funcToCall
-
-
-
-
- -
- millis
-
-
-
-
- -
- recurring
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.tick(millis)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- millis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.uninstallMock()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Clock.useMock()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:12 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Env.html b/doc/symbols/jasmine.Env.html
deleted file mode 100644
index 25ccf3bc..00000000
--- a/doc/symbols/jasmine.Env.html
+++ /dev/null
@@ -1,1210 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Env
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Env
-
-
-
-
-
-
-
-
-
-
Defined in: Env.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- Environment for Jasmine
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
- Register a reporter to receive status updates from Jasmine.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
- describe(description, specDefinitions)
-
-
- |
-
-
-
- | |
-
- equals_(a, b, mismatchKeys, mismatchValues)
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Env()
-
-
-
- Environment for Jasmine
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- addEqualityTester(equalityTester)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- equalityTester
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- addReporter(reporter)
-
-
-
- Register a reporter to receive status updates from Jasmine.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.Reporter} reporter
-
-
- - An object which will receive status updates.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- afterEach(afterEachFunction)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- afterEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- beforeEach(beforeEachFunction)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- beforeEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- compareObjects_(a, b, mismatchKeys, mismatchValues)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a
-
-
-
-
- -
- b
-
-
-
-
- -
- mismatchKeys
-
-
-
-
- -
- mismatchValues
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- contains_(haystack, needle)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- haystack
-
-
-
-
- -
- needle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- currentRunner()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- describe(description, specDefinitions)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- description
-
-
-
-
- -
- specDefinitions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- equals_(a, b, mismatchKeys, mismatchValues)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a
-
-
-
-
- -
- b
-
-
-
-
- -
- mismatchKeys
-
-
-
-
- -
- mismatchValues
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- execute()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- it(description, func)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- description
-
-
-
-
- -
- func
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- matchersClass()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- nextSpecId()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - a sequential integer starting at 0
-
-
-
-
-
-
-
-
-
-
-
-
- nextSuiteId()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - a sequential integer starting at 0
-
-
-
-
-
-
-
-
-
-
-
-
- specFilter()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- version()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - an object containing jasmine version build info, if set.
-
-
-
-
-
-
-
-
-
-
-
-
- versionString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - string containing jasmine version build info, if set.
-
-
-
-
-
-
-
-
-
-
-
-
- xdescribe(desc, specDefinitions)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- desc
-
-
-
-
- -
- specDefinitions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- xit(desc, func)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- desc
-
-
-
-
- -
- func
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:13 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.JsApiReporter.html b/doc/symbols/jasmine.JsApiReporter.html
deleted file mode 100644
index b28efa9d..00000000
--- a/doc/symbols/jasmine.JsApiReporter.html
+++ /dev/null
@@ -1,822 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.JsApiReporter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.JsApiReporter
-
-
-
-
-
-
-
-
-
-
Defined in: JsApiReporter.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- JavaScript API reporter.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.JsApiReporter()
-
-
-
- JavaScript API reporter.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- log(str)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- str
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportRunnerResults(runner)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- runner
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportRunnerStarting(runner)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- runner
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportSpecResults(spec)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportSuiteResults(suite)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- results()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- resultsForSpec(specId)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- specId
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- resultsForSpecs(specIds)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- specIds
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- suites()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- summarize_(suiteOrSpec)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- suiteOrSpec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- summarizeResult_(result)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- result
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:13 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Matchers.html b/doc/symbols/jasmine.Matchers.html
deleted file mode 100644
index ba37f7fd..00000000
--- a/doc/symbols/jasmine.Matchers.html
+++ /dev/null
@@ -1,1563 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Matchers
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Matchers
-
-
-
-
-
-
-
-
-
-
Defined in: Matchers.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | <static> |
-
- jasmine.Matchers. Any(expectedClass)
-
-
- |
-
-
-
- | <static> |
-
- jasmine.Matchers. matcherFn_(matcherName, matcherFunction)
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | <static> |
-
- jasmine.Matchers. pp(str)
-
-
- |
-
-
-
- | |
-
- report(result, failing_message, details)
-
-
- |
-
-
-
- | |
-
-
- toBe: compares the actual to the expected using ===
- |
-
-
-
- | |
-
-
- Matcher that compares the actual to jasmine.undefined.
- |
-
-
-
- | |
-
-
- Matcher that boolean nots the actual.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
- Matcher that compares the actual to null.
- |
-
-
-
- | |
-
-
- Matcher that boolean not-nots the actual.
- |
-
-
-
- | |
-
-
- Matcher that compares the actual to jasmine.undefined.
- |
-
-
-
- | |
-
-
- Matcher that checks that the expected item is an element in the actual Array.
- |
-
-
-
- | |
-
-
- toEqual: compares the actual to the expected using common sense equality.
- |
-
-
-
- | |
-
-
- Matcher that checks to see if the actual, a Jasmine spy, was called.
- |
-
-
-
- | |
-
-
- Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.
- |
-
-
-
- | |
-
-
- Matcher that compares the actual to the expected using a regular expression.
- |
-
-
-
- | |
-
-
- toNotBe: compares the actual to the expected using !==
- |
-
-
-
- | |
-
-
- Matcher that checks that the expected item is NOT an element in the actual Array.
- |
-
-
-
- | |
-
-
- toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
- |
-
-
-
- | |
-
-
- Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
- |
-
-
-
- | |
-
-
- Matcher that checks that the expected exception was thrown by the actual.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
- Matcher that checks to see if the actual, a Jasmine spy, was not called.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | <static> |
-
- jasmine.Matchers. wrapInto_(prototype, matchersClass)
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Matchers(env, actual, spec, opt_isNot)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.Env} env
-
-
-
-
- -
- actual
-
-
-
-
- -
- {jasmine.Spec} spec
-
-
-
-
- -
- opt_isNot
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
<static>
-
-
- jasmine.Matchers.Any(expectedClass)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expectedClass
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Matchers.matcherFn_(matcherName, matcherFunction)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- matcherName
-
-
-
-
- -
- matcherFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- message()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Matchers.pp(str)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- str
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- report(result, failing_message, details)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- result
-
-
-
-
- -
- failing_message
-
-
-
-
- -
- details
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBe(expected)
-
-
-
- toBe: compares the actual to the expected using ===
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBeDefined()
-
-
-
- Matcher that compares the actual to jasmine.undefined.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBeFalsy()
-
-
-
- Matcher that boolean nots the actual.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBeGreaterThan(expected)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBeLessThan(expected)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBeNull()
-
-
-
- Matcher that compares the actual to null.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBeTruthy()
-
-
-
- Matcher that boolean not-nots the actual.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toBeUndefined()
-
-
-
- Matcher that compares the actual to jasmine.undefined.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toContain(expected)
-
-
-
- Matcher that checks that the expected item is an element in the actual Array.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toEqual(expected)
-
-
-
- toEqual: compares the actual to the expected using common sense equality. Handles Objects, Arrays, etc.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toHaveBeenCalled()
-
-
-
- Matcher that checks to see if the actual, a Jasmine spy, was called.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toHaveBeenCalledWith()
-
-
-
- Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toMatch(expected)
-
-
-
- Matcher that compares the actual to the expected using a regular expression. Constructs a RegExp, so takes
-a pattern or a String.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toNotBe(expected)
-
-
-
- toNotBe: compares the actual to the expected using !==
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toNotContain(expected)
-
-
-
- Matcher that checks that the expected item is NOT an element in the actual Array.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toNotEqual(expected)
-
-
-
- toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toNotMatch(expected)
-
-
-
- Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toThrow(expected)
-
-
-
- Matcher that checks that the expected exception was thrown by the actual.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} expected
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- wasCalled()
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Deprecated:
- -
- Use expect(xxx).toHaveBeenCalled() instead
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- wasCalledWith()
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Deprecated:
- -
- Use expect(xxx).toHaveBeenCalledWith() instead
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- wasNotCalled()
-
-
-
- Matcher that checks to see if the actual, a Jasmine spy, was not called.
-
-
-
-
-
-
-
-
-
- - Deprecated:
- -
- Use expect(xxx).not.toHaveBeenCalled() instead
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- wasNotCalledWith()
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Deprecated:
- -
- Use expect(xxx).not.toHaveBeenCalledWith() instead
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Matchers.wrapInto_(prototype, matchersClass)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- prototype
-
-
-
-
- -
- matchersClass
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:13 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.MultiReporter.html b/doc/symbols/jasmine.MultiReporter.html
deleted file mode 100644
index 79ff8463..00000000
--- a/doc/symbols/jasmine.MultiReporter.html
+++ /dev/null
@@ -1,394 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.MultiReporter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.MultiReporter
-
-
-
-
-
-
-
-
-
-
Defined in: MultiReporter.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.MultiReporter()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- addReporter(reporter)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- reporter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:13 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.NestedResults.html b/doc/symbols/jasmine.NestedResults.html
deleted file mode 100644
index 1f464d5b..00000000
--- a/doc/symbols/jasmine.NestedResults.html
+++ /dev/null
@@ -1,710 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.NestedResults
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.NestedResults
-
-
-
-
-
-
-
-
-
-
Defined in: NestedResults.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- Holds results for a set of Jasmine spec.
- |
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
- | Field Attributes |
- Field Name and Description |
-
-
-
-
-
- | |
-
-
- Number of failed results
- |
-
-
-
- | |
-
-
- Number of passed results
- |
-
-
-
- | |
-
-
- Was this suite/spec skipped?
- |
-
-
-
- | |
-
-
- The total count of results
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
- Adds a result, tracking counts (total, passed, & failed)
- |
-
-
-
- | |
-
-
- Getter for the results: message & results.
- |
-
-
-
- | |
-
-
- Adds a log message.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
- Roll up the result counts.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.NestedResults()
-
-
-
- Holds results for a set of Jasmine spec. Allows for the results array to hold another jasmine.NestedResults
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
- failedCount
-
-
-
- Number of failed results
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- passedCount
-
-
-
- Number of passed results
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- skipped
-
-
-
- Was this suite/spec skipped?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- totalCount
-
-
-
- The total count of results
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- addResult(result)
-
-
-
- Adds a result, tracking counts (total, passed, & failed)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.ExpectationResult|jasmine.NestedResults} result
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- getItems()
-
-
-
- Getter for the results: message & results.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- log(values)
-
-
-
- Adds a log message.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- values
-
-
- - Array of message parts which will be concatenated later.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
- passed()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} True if everything below passed
-
-
-
-
-
-
-
-
-
-
-
-
- rollupCounts(result)
-
-
-
- Roll up the result counts.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- result
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:13 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Reporter.html b/doc/symbols/jasmine.Reporter.html
deleted file mode 100644
index fe7470bf..00000000
--- a/doc/symbols/jasmine.Reporter.html
+++ /dev/null
@@ -1,619 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Reporter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Reporter
-
-
-
-
-
-
-
-
-
-
Defined in: Reporter.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- No-op base class for Jasmine reporters.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Reporter()
-
-
-
- No-op base class for Jasmine reporters.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- log(str)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- str
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportRunnerResults(runner)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- runner
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportRunnerStarting(runner)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- runner
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportSpecResults(spec)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportSpecStarting(spec)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reportSuiteResults(suite)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:13 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Runner.html b/doc/symbols/jasmine.Runner.html
deleted file mode 100644
index 5070e765..00000000
--- a/doc/symbols/jasmine.Runner.html
+++ /dev/null
@@ -1,744 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Runner
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Runner
-
-
-
-
-
-
-
-
-
-
Defined in: Runner.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- Runner
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Runner(env)
-
-
-
- Runner
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.Env} env
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- add(block)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- block
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- addSuite(suite)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- afterEach(afterEachFunction)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- afterEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- beforeEach(beforeEachFunction)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- beforeEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- execute()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- finishCallback()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- results()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- specs()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- suites()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- topLevelSuites()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:13 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Spec.html b/doc/symbols/jasmine.Spec.html
deleted file mode 100644
index 0a87f3ae..00000000
--- a/doc/symbols/jasmine.Spec.html
+++ /dev/null
@@ -1,1210 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Spec
-
-
-
-
-
-
-
-
-
-
Defined in: Spec.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- Internal representation of a Jasmine specification, or test.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
- All parameters are pretty-printed and concatenated together, then written to the spec's output.
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
- spyOn(obj, methodName, ignoreMethodDoesntExist)
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
- waitsFor(timeout, latchFunction, timeoutMessage)
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Spec(env, suite, description)
-
-
-
- Internal representation of a Jasmine specification, or test.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.Env} env
-
-
-
-
- -
- {jasmine.Suite} suite
-
-
-
-
- -
- {String} description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- addBeforesAndAftersToQueue()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- addMatcherResult(result)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.ExpectationResult} result
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- addMatchers(matchersPrototype)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- matchersPrototype
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- addToQueue(block)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- block
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- after(doAfter)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- doAfter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- execute(onComplete)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- onComplete
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- expect(actual)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- actual
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- explodes()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- fail(e)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- finish(onComplete)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- onComplete
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- finishCallback()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- getFullName()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- getMatchersClass_()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- log()
-
-
-
- All parameters are pretty-printed and concatenated together, then written to the spec's output.
-
-Be careful not to leave calls to jasmine.log in production code.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- removeAllSpies()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- results()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- runs(func)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- func
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- spyOn(obj, methodName, ignoreMethodDoesntExist)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- obj
-
-
-
-
- -
- methodName
-
-
-
-
- -
- ignoreMethodDoesntExist
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- waits(timeout)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- timeout
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- waitsFor(timeout, latchFunction, timeoutMessage)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- timeout
-
-
-
-
- -
- latchFunction
-
-
-
-
- -
- timeoutMessage
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:14 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Spy.html b/doc/symbols/jasmine.Spy.html
deleted file mode 100644
index 66e158cb..00000000
--- a/doc/symbols/jasmine.Spy.html
+++ /dev/null
@@ -1,856 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Spy
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Spy
-
-
-
-
-
-
-
-
-
-
Defined in: base.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- Jasmine Spies are test doubles that can act as stubs, spies, fakes or when used in an expecation, mocks.
- |
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
- | Field Attributes |
- Field Name and Description |
-
-
-
-
-
- | |
-
-
- Holds arguments for each call to the spy, indexed by call count
- |
-
-
-
- | |
-
-
- The name of the spy, if provided.
- |
-
-
-
- | |
-
-
- Is this Object a spy?
- |
-
-
-
- | |
-
-
- Tracking of the most recent call to the spy.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
- Calls an alternate implementation when a spy is called.
- |
-
-
-
- | |
-
-
- Tells a spy to call through to the actual implemenatation.
- |
-
-
-
- | |
-
-
- For setting the return value of a spy.
- |
-
-
-
- | |
-
-
- For throwing an exception when a spy is called.
- |
-
-
-
- | |
-
-
- The actual function this spy stubs.
- |
-
-
-
- | |
-
-
- Resets all of a spy's the tracking variables so that it can be used again.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Spy(name)
-
-
-
- Jasmine Spies are test doubles that can act as stubs, spies, fakes or when used in an expecation, mocks.
-
-Spies should be created in test setup, before expectations. They can then be checked, using the standard Jasmine
-expectation syntax. Spies can be checked if they were called or not and what the calling params were.
-
-A Spy has the following fields: wasCalled, callCount, mostRecentCall, and argsForCall (see docs).
-
-Spies are torn down at the end of every spec.
-
-Note: Do not call new jasmine.Spy() directly - a spy must be created using spyOn, jasmine.createSpy or jasmine.createSpyObj.
-
-
-
-
-
-
// a stub
-var myStub = jasmine.createSpy('myStub'); // can be used anywhere
-
-// spy example
-var foo = {
- not: function(bool) { return !bool; }
-}
-
-// actual foo.not will not be called, execution stops
-spyOn(foo, 'not');
-
- // foo.not spied upon, execution will continue to implementation
-spyOn(foo, 'not').andCallThrough();
-
-// fake example
-var foo = {
- not: function(bool) { return !bool; }
-}
-
-// foo.not(val) will return val
-spyOn(foo, 'not').andCallFake(function(value) {return value;});
-
-// mock example
-foo.not(7 == 7);
-expect(foo.not).toHaveBeenCalled();
-expect(foo.not).toHaveBeenCalledWith(true);
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} name
-
-
-
-
-
-
-
-
-
-
-
-
-
- - See:
-
- - spyOn, jasmine.createSpy, jasmine.createSpyObj
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
- argsForCall
-
-
-
- Holds arguments for each call to the spy, indexed by call count
-
-
-
-
-
-
-
var mySpy = jasmine.createSpy('foo');
-mySpy(1, 2);
-mySpy(7, 8);
-mySpy.mostRecentCall.args = [7, 8];
-mySpy.argsForCall[0] = [1, 2];
-mySpy.argsForCall[1] = [7, 8];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- identity
-
-
-
- The name of the spy, if provided.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- isSpy
-
-
-
- Is this Object a spy?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- mostRecentCall
-
-
-
- Tracking of the most recent call to the spy.
-
-
-
-
-
-
-
var mySpy = jasmine.createSpy('foo');
-mySpy(1, 2);
-mySpy.mostRecentCall.args = [1, 2];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- andCallFake(fakeFunc)
-
-
-
- Calls an alternate implementation when a spy is called.
-
-
-
-
-
-
-
var baz = function() {
- // do some stuff, return something
-}
-// defining a spy from scratch: foo() calls the function baz
-var foo = jasmine.createSpy('spy on foo').andCall(baz);
-
-// defining a spy on an existing property: foo.bar() calls an anonymnous function
-spyOn(foo, 'bar').andCall(function() { return 'baz';} );
-
-
-
-
-
- - Parameters:
-
- -
- {Function} fakeFunc
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- andCallThrough()
-
-
-
- Tells a spy to call through to the actual implemenatation.
-
-
-
-
-
-
-
var foo = {
- bar: function() { // do some stuff }
-}
-
-// defining a spy on an existing property: foo.bar
-spyOn(foo, 'bar').andCallThrough();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- andReturn(value)
-
-
-
- For setting the return value of a spy.
-
-
-
-
-
-
-
// defining a spy from scratch: foo() returns 'baz'
-var foo = jasmine.createSpy('spy on foo').andReturn('baz');
-
-// defining a spy on an existing property: foo.bar() returns 'baz'
-spyOn(foo, 'bar').andReturn('baz');
-
-
-
-
-
- - Parameters:
-
- -
- {Object} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- andThrow(exceptionMsg)
-
-
-
- For throwing an exception when a spy is called.
-
-
-
-
-
-
-
// defining a spy from scratch: foo() throws an exception w/ message 'ouch'
-var foo = jasmine.createSpy('spy on foo').andThrow('baz');
-
-// defining a spy on an existing property: foo.bar() throws an exception w/ message 'ouch'
-spyOn(foo, 'bar').andThrow('baz');
-
-
-
-
-
- - Parameters:
-
- -
- {String} exceptionMsg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- plan()
-
-
-
- The actual function this spy stubs.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- reset()
-
-
-
- Resets all of a spy's the tracking variables so that it can be used again.
-
-
-
-
-
-
-
spyOn(foo, 'bar');
-
-foo.bar();
-
-expect(foo.bar.callCount).toEqual(1);
-
-foo.bar.reset();
-
-expect(foo.bar.callCount).toEqual(0);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:14 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.Suite.html b/doc/symbols/jasmine.Suite.html
deleted file mode 100644
index 18104b33..00000000
--- a/doc/symbols/jasmine.Suite.html
+++ /dev/null
@@ -1,773 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.Suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class jasmine.Suite
-
-
-
-
-
-
-
-
-
-
Defined in: Suite.js.
-
-
-
-
-
-
- Class Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- jasmine.Suite(env, description, specDefinitions, parentSuite)
-
- Internal representation of a Jasmine suite.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- jasmine.Suite(env, description, specDefinitions, parentSuite)
-
-
-
- Internal representation of a Jasmine suite.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.Env} env
-
-
-
-
- -
- {String} description
-
-
-
-
- -
- {Function} specDefinitions
-
-
-
-
- -
- {jasmine.Suite} parentSuite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
- add(suiteOrSpec)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- suiteOrSpec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- afterEach(afterEachFunction)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- afterEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- beforeEach(beforeEachFunction)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- beforeEachFunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- children()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- execute(onComplete)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- onComplete
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- finish(onComplete)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- onComplete
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- getFullName()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- results()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- specs()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- suites()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:14 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.html b/doc/symbols/jasmine.html
deleted file mode 100644
index 2ff70be9..00000000
--- a/doc/symbols/jasmine.html
+++ /dev/null
@@ -1,1247 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace jasmine
-
-
-
-
-
-
-
-
-
-
Defined in: base.js.
-
-
-
-
-
-
- Namespace Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
- Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
- |
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
- | Field Attributes |
- Field Name and Description |
-
-
-
-
-
- | <static> |
-
-
- Default interval for event loop yields.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | <static> |
-
-
- Returns a matchable 'generic' object of the class type.
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
- Creates a more complicated spy: an Object that has every property a function that is a spy.
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
- Getter for the Jasmine environment.
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
- Returns true if the object is a DOM Node.
- |
-
-
-
- | <static> |
-
- jasmine. isSpy(putativeSpy)
-
- Determines whether an object is a spy.
- |
-
-
-
- | <static> |
-
-
- All parameters are pretty-printed and concatenated together, then written to the current spec's output.
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
- Pretty printer for expecations.
- |
-
-
-
- | <static> |
-
-
- Base class for pretty printing for expectation results.
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
- jasmine. WaitsForBlock(env, timeout, latchFunction, message, spec)
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- jasmine
-
-
-
- Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
<static>
-
-
- jasmine.DEFAULT_UPDATE_INTERVAL
-
-
-
- Default interval for event loop yields. Small values here may result in slow test running. Zero means no updates until all tests have completed.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
<static>
-
-
- jasmine.any(clazz)
-
-
-
- Returns a matchable 'generic' object of the class type. For use in expecations of type when values don't matter.
-
-
-
-
-
-
-
// don't care about which function is passed in, as long as it's a function
-expect(mySpy).toHaveBeenCalledWith(jasmine.any(Function));
-
-
-
-
-
- - Parameters:
-
- -
- {Class} clazz
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - matchable object of the type clazz
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.createSpy(name)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- name
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.createSpyObj(baseName, methodNames)
-
-
-
- Creates a more complicated spy: an Object that has every property a function that is a spy. Used for stubbing something
-large in one call.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} baseName
-
-
- - name of spy class
-
- -
- {Array} methodNames
-
-
- - array of names of methods to make spies
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.ExpectationResult(params)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- params
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.FakeTimer()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.getEnv()
-
-
-
- Getter for the Jasmine environment. Ensures one gets created
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.getGlobal()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
- {Boolean}
- jasmine.isDomNode(obj)
-
-
-
- Returns true if the object is a DOM Node.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} obj
-
-
- - object to check
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
<static>
-
- {Boolean}
- jasmine.isSpy(putativeSpy)
-
-
-
- Determines whether an object is a spy.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {jasmine.Spy|Object} putativeSpy
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.log()
-
-
-
- All parameters are pretty-printed and concatenated together, then written to the current spec's output.
-
-Be careful not to leave calls to jasmine.log in production code.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.MessageResult(values)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
- {String}
- jasmine.pp(value)
-
-
-
- Pretty printer for expecations. Takes any object and turns it into a human-readable string.
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Object} an object to be outputted
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.PrettyPrinter()
-
-
-
- Base class for pretty printing for expectation results.
-
-
-
Defined in: PrettyPrinter.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.Queue(env)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- env
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.StringPrettyPrinter()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.TrivialReporter(doc)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- doc
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.WaitsBlock(env, timeout, spec)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- env
-
-
-
-
- -
- timeout
-
-
-
-
- -
- spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.WaitsForBlock(env, timeout, latchFunction, message, spec)
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- env
-
-
-
-
- -
- timeout
-
-
-
-
- -
- latchFunction
-
-
-
-
- -
- message
-
-
-
-
- -
- spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:12 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/jasmine.util.html b/doc/symbols/jasmine.util.html
deleted file mode 100644
index 07ac66af..00000000
--- a/doc/symbols/jasmine.util.html
+++ /dev/null
@@ -1,535 +0,0 @@
-
-
-
-
-
-
- JsDoc Reference - jasmine.util
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace jasmine.util
-
-
-
-
-
-
-
-
-
-
Defined in: util.js.
-
-
-
-
-
-
- Namespace Summary
-
-
- | Constructor Attributes |
- Constructor Name and Description |
-
-
-
-
- | |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
- | Method Attributes |
- Method Name and Description |
-
-
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
- jasmine.util. extend(destination, source)
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
- | <static> |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- jasmine.util
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
<static>
-
-
- jasmine.util.argsToArray(args)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- args
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.util.extend(destination, source)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- destination
-
-
-
-
- -
- source
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.util.formatException(e)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<static>
-
-
- jasmine.util.htmlEscape(str)
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- str
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Documentation generated by
JsDoc Toolkit 2.1.0 on Fri Jun 25 2010 15:15:14 GMT-0700 (PDT)
-
-
-
diff --git a/doc/symbols/src/src_Block.js.html b/doc/symbols/src/src_Block.js.html
deleted file mode 100644
index a834f586..00000000
--- a/doc/symbols/src/src_Block.js.html
+++ /dev/null
@@ -1,29 +0,0 @@
- 1 /**
- 2 * Blocks are functions with executable code that make up a spec.
- 3 *
- 4 * @constructor
- 5 * @param {jasmine.Env} env
- 6 * @param {Function} func
- 7 * @param {jasmine.Spec} spec
- 8 */
- 9 jasmine.Block = function(env, func, spec) {
- 10 this.env = env;
- 11 this.func = func;
- 12 this.spec = spec;
- 13 };
- 14
- 15 jasmine.Block.prototype.execute = function(onComplete) {
- 16 try {
- 17 this.func.apply(this.spec);
- 18 } catch (e) {
- 19 this.spec.fail(e);
- 20 }
- 21 onComplete();
- 22 };
\ No newline at end of file
diff --git a/doc/symbols/src/src_Env.js.html b/doc/symbols/src/src_Env.js.html
deleted file mode 100644
index 3d8863c9..00000000
--- a/doc/symbols/src/src_Env.js.html
+++ /dev/null
@@ -1,271 +0,0 @@
- 1 /**
- 2 * Environment for Jasmine
- 3 *
- 4 * @constructor
- 5 */
- 6 jasmine.Env = function() {
- 7 this.currentSpec = null;
- 8 this.currentSuite = null;
- 9 this.currentRunner_ = new jasmine.Runner(this);
- 10
- 11 this.reporter = new jasmine.MultiReporter();
- 12
- 13 this.updateInterval = jasmine.DEFAULT_UPDATE_INTERVAL;
- 14 this.lastUpdate = 0;
- 15 this.specFilter = function() {
- 16 return true;
- 17 };
- 18
- 19 this.nextSpecId_ = 0;
- 20 this.nextSuiteId_ = 0;
- 21 this.equalityTesters_ = [];
- 22
- 23 // wrap matchers
- 24 this.matchersClass = function() {
- 25 jasmine.Matchers.apply(this, arguments);
- 26 };
- 27 jasmine.util.inherit(this.matchersClass, jasmine.Matchers);
- 28
- 29 jasmine.Matchers.wrapInto_(jasmine.Matchers.prototype, this.matchersClass);
- 30 };
- 31
- 32
- 33 jasmine.Env.prototype.setTimeout = jasmine.setTimeout;
- 34 jasmine.Env.prototype.clearTimeout = jasmine.clearTimeout;
- 35 jasmine.Env.prototype.setInterval = jasmine.setInterval;
- 36 jasmine.Env.prototype.clearInterval = jasmine.clearInterval;
- 37
- 38 /**
- 39 * @returns an object containing jasmine version build info, if set.
- 40 */
- 41 jasmine.Env.prototype.version = function () {
- 42 if (jasmine.version_) {
- 43 return jasmine.version_;
- 44 } else {
- 45 throw new Error('Version not set');
- 46 }
- 47 };
- 48
- 49 /**
- 50 * @returns string containing jasmine version build info, if set.
- 51 */
- 52 jasmine.Env.prototype.versionString = function() {
- 53 if (jasmine.version_) {
- 54 var version = this.version();
- 55 return version.major + "." + version.minor + "." + version.build + " revision " + version.revision;
- 56 } else {
- 57 return "version unknown";
- 58 }
- 59 };
- 60
- 61 /**
- 62 * @returns a sequential integer starting at 0
- 63 */
- 64 jasmine.Env.prototype.nextSpecId = function () {
- 65 return this.nextSpecId_++;
- 66 };
- 67
- 68 /**
- 69 * @returns a sequential integer starting at 0
- 70 */
- 71 jasmine.Env.prototype.nextSuiteId = function () {
- 72 return this.nextSuiteId_++;
- 73 };
- 74
- 75 /**
- 76 * Register a reporter to receive status updates from Jasmine.
- 77 * @param {jasmine.Reporter} reporter An object which will receive status updates.
- 78 */
- 79 jasmine.Env.prototype.addReporter = function(reporter) {
- 80 this.reporter.addReporter(reporter);
- 81 };
- 82
- 83 jasmine.Env.prototype.execute = function() {
- 84 this.currentRunner_.execute();
- 85 };
- 86
- 87 jasmine.Env.prototype.describe = function(description, specDefinitions) {
- 88 var suite = new jasmine.Suite(this, description, specDefinitions, this.currentSuite);
- 89
- 90 var parentSuite = this.currentSuite;
- 91 if (parentSuite) {
- 92 parentSuite.add(suite);
- 93 } else {
- 94 this.currentRunner_.add(suite);
- 95 }
- 96
- 97 this.currentSuite = suite;
- 98
- 99 var declarationError = null;
-100 try {
-101 specDefinitions.call(suite);
-102 } catch(e) {
-103 declarationError = e;
-104 }
-105
-106 this.currentSuite = parentSuite;
-107
-108 if (declarationError) {
-109 this.it("encountered a declaration exception", function() {
-110 throw declarationError;
-111 });
-112 }
-113
-114 return suite;
-115 };
-116
-117 jasmine.Env.prototype.beforeEach = function(beforeEachFunction) {
-118 if (this.currentSuite) {
-119 this.currentSuite.beforeEach(beforeEachFunction);
-120 } else {
-121 this.currentRunner_.beforeEach(beforeEachFunction);
-122 }
-123 };
-124
-125 jasmine.Env.prototype.currentRunner = function () {
-126 return this.currentRunner_;
-127 };
-128
-129 jasmine.Env.prototype.afterEach = function(afterEachFunction) {
-130 if (this.currentSuite) {
-131 this.currentSuite.afterEach(afterEachFunction);
-132 } else {
-133 this.currentRunner_.afterEach(afterEachFunction);
-134 }
-135
-136 };
-137
-138 jasmine.Env.prototype.xdescribe = function(desc, specDefinitions) {
-139 return {
-140 execute: function() {
-141 }
-142 };
-143 };
-144
-145 jasmine.Env.prototype.it = function(description, func) {
-146 var spec = new jasmine.Spec(this, this.currentSuite, description);
-147 this.currentSuite.add(spec);
-148 this.currentSpec = spec;
-149
-150 if (func) {
-151 spec.runs(func);
-152 }
-153
-154 return spec;
-155 };
-156
-157 jasmine.Env.prototype.xit = function(desc, func) {
-158 return {
-159 id: this.nextSpecId(),
-160 runs: function() {
-161 }
-162 };
-163 };
-164
-165 jasmine.Env.prototype.compareObjects_ = function(a, b, mismatchKeys, mismatchValues) {
-166 if (a.__Jasmine_been_here_before__ === b && b.__Jasmine_been_here_before__ === a) {
-167 return true;
-168 }
-169
-170 a.__Jasmine_been_here_before__ = b;
-171 b.__Jasmine_been_here_before__ = a;
-172
-173 var hasKey = function(obj, keyName) {
-174 return obj != null && obj[keyName] !== jasmine.undefined;
-175 };
-176
-177 for (var property in b) {
-178 if (!hasKey(a, property) && hasKey(b, property)) {
-179 mismatchKeys.push("expected has key '" + property + "', but missing from actual.");
-180 }
-181 }
-182 for (property in a) {
-183 if (!hasKey(b, property) && hasKey(a, property)) {
-184 mismatchKeys.push("expected missing key '" + property + "', but present in actual.");
-185 }
-186 }
-187 for (property in b) {
-188 if (property == '__Jasmine_been_here_before__') continue;
-189 if (!this.equals_(a[property], b[property], mismatchKeys, mismatchValues)) {
-190 mismatchValues.push("'" + property + "' was '" + (b[property] ? jasmine.util.htmlEscape(b[property].toString()) : b[property]) + "' in expected, but was '" + (a[property] ? jasmine.util.htmlEscape(a[property].toString()) : a[property]) + "' in actual.");
-191 }
-192 }
-193
-194 if (jasmine.isArray_(a) && jasmine.isArray_(b) && a.length != b.length) {
-195 mismatchValues.push("arrays were not the same length");
-196 }
-197
-198 delete a.__Jasmine_been_here_before__;
-199 delete b.__Jasmine_been_here_before__;
-200 return (mismatchKeys.length == 0 && mismatchValues.length == 0);
-201 };
-202
-203 jasmine.Env.prototype.equals_ = function(a, b, mismatchKeys, mismatchValues) {
-204 mismatchKeys = mismatchKeys || [];
-205 mismatchValues = mismatchValues || [];
-206
-207 for (var i = 0; i < this.equalityTesters_.length; i++) {
-208 var equalityTester = this.equalityTesters_[i];
-209 var result = equalityTester(a, b, this, mismatchKeys, mismatchValues);
-210 if (result !== jasmine.undefined) return result;
-211 }
-212
-213 if (a === b) return true;
-214
-215 if (a === jasmine.undefined || a === null || b === jasmine.undefined || b === null) {
-216 return (a == jasmine.undefined && b == jasmine.undefined);
-217 }
-218
-219 if (jasmine.isDomNode(a) && jasmine.isDomNode(b)) {
-220 return a === b;
-221 }
-222
-223 if (a instanceof Date && b instanceof Date) {
-224 return a.getTime() == b.getTime();
-225 }
-226
-227 if (a instanceof jasmine.Matchers.Any) {
-228 return a.matches(b);
-229 }
-230
-231 if (b instanceof jasmine.Matchers.Any) {
-232 return b.matches(a);
-233 }
-234
-235 if (jasmine.isString_(a) && jasmine.isString_(b)) {
-236 return (a == b);
-237 }
-238
-239 if (jasmine.isNumber_(a) && jasmine.isNumber_(b)) {
-240 return (a == b);
-241 }
-242
-243 if (typeof a === "object" && typeof b === "object") {
-244 return this.compareObjects_(a, b, mismatchKeys, mismatchValues);
-245 }
-246
-247 //Straight check
-248 return (a === b);
-249 };
-250
-251 jasmine.Env.prototype.contains_ = function(haystack, needle) {
-252 if (jasmine.isArray_(haystack)) {
-253 for (var i = 0; i < haystack.length; i++) {
-254 if (this.equals_(haystack[i], needle)) return true;
-255 }
-256 return false;
-257 }
-258 return haystack.indexOf(needle) >= 0;
-259 };
-260
-261 jasmine.Env.prototype.addEqualityTester = function(equalityTester) {
-262 this.equalityTesters_.push(equalityTester);
-263 };
-264
\ No newline at end of file
diff --git a/doc/symbols/src/src_JsApiReporter.js.html b/doc/symbols/src/src_JsApiReporter.js.html
deleted file mode 100644
index 8ba33ff5..00000000
--- a/doc/symbols/src/src_JsApiReporter.js.html
+++ /dev/null
@@ -1,110 +0,0 @@
- 1 /** JavaScript API reporter.
- 2 *
- 3 * @constructor
- 4 */
- 5 jasmine.JsApiReporter = function() {
- 6 this.started = false;
- 7 this.finished = false;
- 8 this.suites_ = [];
- 9 this.results_ = {};
- 10 };
- 11
- 12 jasmine.JsApiReporter.prototype.reportRunnerStarting = function(runner) {
- 13 this.started = true;
- 14 var suites = runner.topLevelSuites();
- 15 for (var i = 0; i < suites.length; i++) {
- 16 var suite = suites[i];
- 17 this.suites_.push(this.summarize_(suite));
- 18 }
- 19 };
- 20
- 21 jasmine.JsApiReporter.prototype.suites = function() {
- 22 return this.suites_;
- 23 };
- 24
- 25 jasmine.JsApiReporter.prototype.summarize_ = function(suiteOrSpec) {
- 26 var isSuite = suiteOrSpec instanceof jasmine.Suite;
- 27 var summary = {
- 28 id: suiteOrSpec.id,
- 29 name: suiteOrSpec.description,
- 30 type: isSuite ? 'suite' : 'spec',
- 31 children: []
- 32 };
- 33
- 34 if (isSuite) {
- 35 var children = suiteOrSpec.children();
- 36 for (var i = 0; i < children.length; i++) {
- 37 summary.children.push(this.summarize_(children[i]));
- 38 }
- 39 }
- 40 return summary;
- 41 };
- 42
- 43 jasmine.JsApiReporter.prototype.results = function() {
- 44 return this.results_;
- 45 };
- 46
- 47 jasmine.JsApiReporter.prototype.resultsForSpec = function(specId) {
- 48 return this.results_[specId];
- 49 };
- 50
- 51 //noinspection JSUnusedLocalSymbols
- 52 jasmine.JsApiReporter.prototype.reportRunnerResults = function(runner) {
- 53 this.finished = true;
- 54 };
- 55
- 56 //noinspection JSUnusedLocalSymbols
- 57 jasmine.JsApiReporter.prototype.reportSuiteResults = function(suite) {
- 58 };
- 59
- 60 //noinspection JSUnusedLocalSymbols
- 61 jasmine.JsApiReporter.prototype.reportSpecResults = function(spec) {
- 62 this.results_[spec.id] = {
- 63 messages: spec.results().getItems(),
- 64 result: spec.results().failedCount > 0 ? "failed" : "passed"
- 65 };
- 66 };
- 67
- 68 //noinspection JSUnusedLocalSymbols
- 69 jasmine.JsApiReporter.prototype.log = function(str) {
- 70 };
- 71
- 72 jasmine.JsApiReporter.prototype.resultsForSpecs = function(specIds){
- 73 var results = {};
- 74 for (var i = 0; i < specIds.length; i++) {
- 75 var specId = specIds[i];
- 76 results[specId] = this.summarizeResult_(this.results_[specId]);
- 77 }
- 78 return results;
- 79 };
- 80
- 81 jasmine.JsApiReporter.prototype.summarizeResult_ = function(result){
- 82 var summaryMessages = [];
- 83 var messagesLength = result.messages.length;
- 84 for (var messageIndex = 0; messageIndex < messagesLength; messageIndex++) {
- 85 var resultMessage = result.messages[messageIndex];
- 86 summaryMessages.push({
- 87 text: resultMessage.type == 'log' ? resultMessage.toString() : jasmine.undefined,
- 88 passed: resultMessage.passed ? resultMessage.passed() : true,
- 89 type: resultMessage.type,
- 90 message: resultMessage.message,
- 91 trace: {
- 92 stack: resultMessage.passed && !resultMessage.passed() ? resultMessage.trace.stack : jasmine.undefined
- 93 }
- 94 });
- 95 }
- 96
- 97 return {
- 98 result : result.result,
- 99 messages : summaryMessages
-100 };
-101 };
-102
-103
\ No newline at end of file
diff --git a/doc/symbols/src/src_Matchers.js.html b/doc/symbols/src/src_Matchers.js.html
deleted file mode 100644
index 62d2fd7b..00000000
--- a/doc/symbols/src/src_Matchers.js.html
+++ /dev/null
@@ -1,344 +0,0 @@
- 1 /**
- 2 * @constructor
- 3 * @param {jasmine.Env} env
- 4 * @param actual
- 5 * @param {jasmine.Spec} spec
- 6 */
- 7 jasmine.Matchers = function(env, actual, spec, opt_isNot) {
- 8 this.env = env;
- 9 this.actual = actual;
- 10 this.spec = spec;
- 11 this.isNot = opt_isNot || false;
- 12 this.reportWasCalled_ = false;
- 13 };
- 14
- 15 // todo: @deprecated as of Jasmine 0.11, remove soon [xw]
- 16 jasmine.Matchers.pp = function(str) {
- 17 throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!");
- 18 };
- 19
- 20 // todo: @deprecated Deprecated as of Jasmine 0.10. Rewrite your custom matchers to return true or false. [xw]
- 21 jasmine.Matchers.prototype.report = function(result, failing_message, details) {
- 22 throw new Error("As of jasmine 0.11, custom matchers must be implemented differently -- please see jasmine docs");
- 23 };
- 24
- 25 jasmine.Matchers.wrapInto_ = function(prototype, matchersClass) {
- 26 for (var methodName in prototype) {
- 27 if (methodName == 'report') continue;
- 28 var orig = prototype[methodName];
- 29 matchersClass.prototype[methodName] = jasmine.Matchers.matcherFn_(methodName, orig);
- 30 }
- 31 };
- 32
- 33 jasmine.Matchers.matcherFn_ = function(matcherName, matcherFunction) {
- 34 return function() {
- 35 var matcherArgs = jasmine.util.argsToArray(arguments);
- 36 var result = matcherFunction.apply(this, arguments);
- 37
- 38 if (this.isNot) {
- 39 result = !result;
- 40 }
- 41
- 42 if (this.reportWasCalled_) return result;
- 43
- 44 var message;
- 45 if (!result) {
- 46 if (this.message) {
- 47 message = this.message.apply(this, arguments);
- 48 if (jasmine.isArray_(message)) {
- 49 message = message[this.isNot ? 1 : 0];
- 50 }
- 51 } else {
- 52 var englishyPredicate = matcherName.replace(/[A-Z]/g, function(s) { return ' ' + s.toLowerCase(); });
- 53 message = "Expected " + jasmine.pp(this.actual) + (this.isNot ? " not " : " ") + englishyPredicate;
- 54 if (matcherArgs.length > 0) {
- 55 for (var i = 0; i < matcherArgs.length; i++) {
- 56 if (i > 0) message += ",";
- 57 message += " " + jasmine.pp(matcherArgs[i]);
- 58 }
- 59 }
- 60 message += ".";
- 61 }
- 62 }
- 63 var expectationResult = new jasmine.ExpectationResult({
- 64 matcherName: matcherName,
- 65 passed: result,
- 66 expected: matcherArgs.length > 1 ? matcherArgs : matcherArgs[0],
- 67 actual: this.actual,
- 68 message: message
- 69 });
- 70 this.spec.addMatcherResult(expectationResult);
- 71 return result;
- 72 };
- 73 };
- 74
- 75
- 76
- 77
- 78 /**
- 79 * toBe: compares the actual to the expected using ===
- 80 * @param expected
- 81 */
- 82 jasmine.Matchers.prototype.toBe = function(expected) {
- 83 return this.actual === expected;
- 84 };
- 85
- 86 /**
- 87 * toNotBe: compares the actual to the expected using !==
- 88 * @param expected
- 89 */
- 90 jasmine.Matchers.prototype.toNotBe = function(expected) {
- 91 return this.actual !== expected;
- 92 };
- 93
- 94 /**
- 95 * toEqual: compares the actual to the expected using common sense equality. Handles Objects, Arrays, etc.
- 96 *
- 97 * @param expected
- 98 */
- 99 jasmine.Matchers.prototype.toEqual = function(expected) {
-100 return this.env.equals_(this.actual, expected);
-101 };
-102
-103 /**
-104 * toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
-105 * @param expected
-106 */
-107 jasmine.Matchers.prototype.toNotEqual = function(expected) {
-108 return !this.env.equals_(this.actual, expected);
-109 };
-110
-111 /**
-112 * Matcher that compares the actual to the expected using a regular expression. Constructs a RegExp, so takes
-113 * a pattern or a String.
-114 *
-115 * @param expected
-116 */
-117 jasmine.Matchers.prototype.toMatch = function(expected) {
-118 return new RegExp(expected).test(this.actual);
-119 };
-120
-121 /**
-122 * Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
-123 * @param expected
-124 */
-125 jasmine.Matchers.prototype.toNotMatch = function(expected) {
-126 return !(new RegExp(expected).test(this.actual));
-127 };
-128
-129 /**
-130 * Matcher that compares the actual to jasmine.undefined.
-131 */
-132 jasmine.Matchers.prototype.toBeDefined = function() {
-133 return (this.actual !== jasmine.undefined);
-134 };
-135
-136 /**
-137 * Matcher that compares the actual to jasmine.undefined.
-138 */
-139 jasmine.Matchers.prototype.toBeUndefined = function() {
-140 return (this.actual === jasmine.undefined);
-141 };
-142
-143 /**
-144 * Matcher that compares the actual to null.
-145 */
-146 jasmine.Matchers.prototype.toBeNull = function() {
-147 return (this.actual === null);
-148 };
-149
-150 /**
-151 * Matcher that boolean not-nots the actual.
-152 */
-153 jasmine.Matchers.prototype.toBeTruthy = function() {
-154 return !!this.actual;
-155 };
-156
-157
-158 /**
-159 * Matcher that boolean nots the actual.
-160 */
-161 jasmine.Matchers.prototype.toBeFalsy = function() {
-162 return !this.actual;
-163 };
-164
-165
-166 /** @deprecated Use expect(xxx).toHaveBeenCalled() instead */
-167 jasmine.Matchers.prototype.wasCalled = function() {
-168 return this.toHaveBeenCalled();
-169 };
-170
-171 /**
-172 * Matcher that checks to see if the actual, a Jasmine spy, was called.
-173 */
-174 jasmine.Matchers.prototype.toHaveBeenCalled = function() {
-175 if (arguments.length > 0) {
-176 throw new Error('toHaveBeenCalled does not take arguments, use toHaveBeenCalledWith');
-177 }
-178
-179 if (!jasmine.isSpy(this.actual)) {
-180 throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-181 }
-182
-183 this.message = function() {
-184 return "Expected spy " + this.actual.identity + " to have been called.";
-185 };
-186
-187 return this.actual.wasCalled;
-188 };
-189
-190 /**
-191 * Matcher that checks to see if the actual, a Jasmine spy, was not called.
-192 *
-193 * @deprecated Use expect(xxx).not.toHaveBeenCalled() instead
-194 */
-195 jasmine.Matchers.prototype.wasNotCalled = function() {
-196 if (arguments.length > 0) {
-197 throw new Error('wasNotCalled does not take arguments');
-198 }
-199
-200 if (!jasmine.isSpy(this.actual)) {
-201 throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-202 }
-203
-204 this.message = function() {
-205 return "Expected spy " + this.actual.identity + " to not have been called.";
-206 };
-207
-208 return !this.actual.wasCalled;
-209 };
-210
-211 /** @deprecated Use expect(xxx).toHaveBeenCalledWith() instead */
-212 jasmine.Matchers.prototype.wasCalledWith = function() {
-213 return this.toHaveBeenCalledWith.apply(this, arguments);
-214 };
-215
-216 /**
-217 * Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.
-218 *
-219 * @example
-220 *
-221 */
-222 jasmine.Matchers.prototype.toHaveBeenCalledWith = function() {
-223 var expectedArgs = jasmine.util.argsToArray(arguments);
-224 if (!jasmine.isSpy(this.actual)) {
-225 throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-226 }
-227 this.message = function() {
-228 if (this.actual.callCount == 0) {
-229 return "Expected spy to have been called with " + jasmine.pp(expectedArgs) + " but it was never called.";
-230 } else {
-231 return "Expected spy to have been called with " + jasmine.pp(expectedArgs) + " but was called with " + jasmine.pp(this.actual.argsForCall);
-232 }
-233 };
-234
-235 return this.env.contains_(this.actual.argsForCall, expectedArgs);
-236 };
-237
-238 /** @deprecated Use expect(xxx).not.toHaveBeenCalledWith() instead */
-239 jasmine.Matchers.prototype.wasNotCalledWith = function() {
-240 var expectedArgs = jasmine.util.argsToArray(arguments);
-241 if (!jasmine.isSpy(this.actual)) {
-242 throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-243 }
-244
-245 this.message = function() {
-246 return "Expected spy not to have been called with " + jasmine.pp(expectedArgs) + " but it was";
-247 };
-248
-249 return !this.env.contains_(this.actual.argsForCall, expectedArgs);
-250 };
-251
-252 /**
-253 * Matcher that checks that the expected item is an element in the actual Array.
-254 *
-255 * @param {Object} expected
-256 */
-257 jasmine.Matchers.prototype.toContain = function(expected) {
-258 return this.env.contains_(this.actual, expected);
-259 };
-260
-261 /**
-262 * Matcher that checks that the expected item is NOT an element in the actual Array.
-263 *
-264 * @param {Object} expected
-265 */
-266 jasmine.Matchers.prototype.toNotContain = function(expected) {
-267 return !this.env.contains_(this.actual, expected);
-268 };
-269
-270 jasmine.Matchers.prototype.toBeLessThan = function(expected) {
-271 return this.actual < expected;
-272 };
-273
-274 jasmine.Matchers.prototype.toBeGreaterThan = function(expected) {
-275 return this.actual > expected;
-276 };
-277
-278 /**
-279 * Matcher that checks that the expected exception was thrown by the actual.
-280 *
-281 * @param {String} expected
-282 */
-283 jasmine.Matchers.prototype.toThrow = function(expected) {
-284 var result = false;
-285 var exception;
-286 if (typeof this.actual != 'function') {
-287 throw new Error('Actual is not a function');
-288 }
-289 try {
-290 this.actual();
-291 } catch (e) {
-292 exception = e;
-293 }
-294 if (exception) {
-295 result = (expected === jasmine.undefined || this.env.equals_(exception.message || exception, expected.message || expected));
-296 }
-297
-298 this.message = function() {
-299 if (exception && (expected === jasmine.undefined || !this.env.equals_(exception.message || exception, expected.message || expected))) {
-300 return ["Expected function to throw", expected.message || expected, ", but it threw", exception.message || exception].join(' ');
-301 } else {
-302 return "Expected function to throw an exception.";
-303 }
-304 };
-305
-306 return result;
-307 };
-308
-309 jasmine.Matchers.Any = function(expectedClass) {
-310 this.expectedClass = expectedClass;
-311 };
-312
-313 jasmine.Matchers.Any.prototype.matches = function(other) {
-314 if (this.expectedClass == String) {
-315 return typeof other == 'string' || other instanceof String;
-316 }
-317
-318 if (this.expectedClass == Number) {
-319 return typeof other == 'number' || other instanceof Number;
-320 }
-321
-322 if (this.expectedClass == Function) {
-323 return typeof other == 'function' || other instanceof Function;
-324 }
-325
-326 if (this.expectedClass == Object) {
-327 return typeof other == 'object';
-328 }
-329
-330 return other instanceof this.expectedClass;
-331 };
-332
-333 jasmine.Matchers.Any.prototype.toString = function() {
-334 return '<jasmine.any(' + this.expectedClass + ')>';
-335 };
-336
-337
\ No newline at end of file
diff --git a/doc/symbols/src/src_MultiReporter.js.html b/doc/symbols/src/src_MultiReporter.js.html
deleted file mode 100644
index 2316cea5..00000000
--- a/doc/symbols/src/src_MultiReporter.js.html
+++ /dev/null
@@ -1,43 +0,0 @@
- 1 /**
- 2 * @constructor
- 3 */
- 4 jasmine.MultiReporter = function() {
- 5 this.subReporters_ = [];
- 6 };
- 7 jasmine.util.inherit(jasmine.MultiReporter, jasmine.Reporter);
- 8
- 9 jasmine.MultiReporter.prototype.addReporter = function(reporter) {
- 10 this.subReporters_.push(reporter);
- 11 };
- 12
- 13 (function() {
- 14 var functionNames = [
- 15 "reportRunnerStarting",
- 16 "reportRunnerResults",
- 17 "reportSuiteResults",
- 18 "reportSpecStarting",
- 19 "reportSpecResults",
- 20 "log"
- 21 ];
- 22 for (var i = 0; i < functionNames.length; i++) {
- 23 var functionName = functionNames[i];
- 24 jasmine.MultiReporter.prototype[functionName] = (function(functionName) {
- 25 return function() {
- 26 for (var j = 0; j < this.subReporters_.length; j++) {
- 27 var subReporter = this.subReporters_[j];
- 28 if (subReporter[functionName]) {
- 29 subReporter[functionName].apply(subReporter, arguments);
- 30 }
- 31 }
- 32 };
- 33 })(functionName);
- 34 }
- 35 })();
- 36
\ No newline at end of file
diff --git a/doc/symbols/src/src_NestedResults.js.html b/doc/symbols/src/src_NestedResults.js.html
deleted file mode 100644
index 7a9e82a8..00000000
--- a/doc/symbols/src/src_NestedResults.js.html
+++ /dev/null
@@ -1,88 +0,0 @@
- 1 /**
- 2 * Holds results for a set of Jasmine spec. Allows for the results array to hold another jasmine.NestedResults
- 3 *
- 4 * @constructor
- 5 */
- 6 jasmine.NestedResults = function() {
- 7 /**
- 8 * The total count of results
- 9 */
- 10 this.totalCount = 0;
- 11 /**
- 12 * Number of passed results
- 13 */
- 14 this.passedCount = 0;
- 15 /**
- 16 * Number of failed results
- 17 */
- 18 this.failedCount = 0;
- 19 /**
- 20 * Was this suite/spec skipped?
- 21 */
- 22 this.skipped = false;
- 23 /**
- 24 * @ignore
- 25 */
- 26 this.items_ = [];
- 27 };
- 28
- 29 /**
- 30 * Roll up the result counts.
- 31 *
- 32 * @param result
- 33 */
- 34 jasmine.NestedResults.prototype.rollupCounts = function(result) {
- 35 this.totalCount += result.totalCount;
- 36 this.passedCount += result.passedCount;
- 37 this.failedCount += result.failedCount;
- 38 };
- 39
- 40 /**
- 41 * Adds a log message.
- 42 * @param values Array of message parts which will be concatenated later.
- 43 */
- 44 jasmine.NestedResults.prototype.log = function(values) {
- 45 this.items_.push(new jasmine.MessageResult(values));
- 46 };
- 47
- 48 /**
- 49 * Getter for the results: message & results.
- 50 */
- 51 jasmine.NestedResults.prototype.getItems = function() {
- 52 return this.items_;
- 53 };
- 54
- 55 /**
- 56 * Adds a result, tracking counts (total, passed, & failed)
- 57 * @param {jasmine.ExpectationResult|jasmine.NestedResults} result
- 58 */
- 59 jasmine.NestedResults.prototype.addResult = function(result) {
- 60 if (result.type != 'log') {
- 61 if (result.items_) {
- 62 this.rollupCounts(result);
- 63 } else {
- 64 this.totalCount++;
- 65 if (result.passed()) {
- 66 this.passedCount++;
- 67 } else {
- 68 this.failedCount++;
- 69 }
- 70 }
- 71 }
- 72 this.items_.push(result);
- 73 };
- 74
- 75 /**
- 76 * @returns {Boolean} True if <b>everything</b> below passed
- 77 */
- 78 jasmine.NestedResults.prototype.passed = function() {
- 79 return this.passedCount === this.totalCount;
- 80 };
- 81
\ No newline at end of file
diff --git a/doc/symbols/src/src_PrettyPrinter.js.html b/doc/symbols/src/src_PrettyPrinter.js.html
deleted file mode 100644
index 9e638b48..00000000
--- a/doc/symbols/src/src_PrettyPrinter.js.html
+++ /dev/null
@@ -1,130 +0,0 @@
- 1 /**
- 2 * Base class for pretty printing for expectation results.
- 3 */
- 4 jasmine.PrettyPrinter = function() {
- 5 this.ppNestLevel_ = 0;
- 6 };
- 7
- 8 /**
- 9 * Formats a value in a nice, human-readable string.
- 10 *
- 11 * @param value
- 12 */
- 13 jasmine.PrettyPrinter.prototype.format = function(value) {
- 14 if (this.ppNestLevel_ > 40) {
- 15 throw new Error('jasmine.PrettyPrinter: format() nested too deeply!');
- 16 }
- 17
- 18 this.ppNestLevel_++;
- 19 try {
- 20 if (value === jasmine.undefined) {
- 21 this.emitScalar('undefined');
- 22 } else if (value === null) {
- 23 this.emitScalar('null');
- 24 } else if (value === jasmine.getGlobal()) {
- 25 this.emitScalar('<global>');
- 26 } else if (value instanceof jasmine.Matchers.Any) {
- 27 this.emitScalar(value.toString());
- 28 } else if (typeof value === 'string') {
- 29 this.emitString(value);
- 30 } else if (jasmine.isSpy(value)) {
- 31 this.emitScalar("spy on " + value.identity);
- 32 } else if (value instanceof RegExp) {
- 33 this.emitScalar(value.toString());
- 34 } else if (typeof value === 'function') {
- 35 this.emitScalar('Function');
- 36 } else if (typeof value.nodeType === 'number') {
- 37 this.emitScalar('HTMLNode');
- 38 } else if (value instanceof Date) {
- 39 this.emitScalar('Date(' + value + ')');
- 40 } else if (value.__Jasmine_been_here_before__) {
- 41 this.emitScalar('<circular reference: ' + (jasmine.isArray_(value) ? 'Array' : 'Object') + '>');
- 42 } else if (jasmine.isArray_(value) || typeof value == 'object') {
- 43 value.__Jasmine_been_here_before__ = true;
- 44 if (jasmine.isArray_(value)) {
- 45 this.emitArray(value);
- 46 } else {
- 47 this.emitObject(value);
- 48 }
- 49 delete value.__Jasmine_been_here_before__;
- 50 } else {
- 51 this.emitScalar(value.toString());
- 52 }
- 53 } finally {
- 54 this.ppNestLevel_--;
- 55 }
- 56 };
- 57
- 58 jasmine.PrettyPrinter.prototype.iterateObject = function(obj, fn) {
- 59 for (var property in obj) {
- 60 if (property == '__Jasmine_been_here_before__') continue;
- 61 fn(property, obj.__lookupGetter__ ? (obj.__lookupGetter__(property) != null) : false);
- 62 }
- 63 };
- 64
- 65 jasmine.PrettyPrinter.prototype.emitArray = jasmine.unimplementedMethod_;
- 66 jasmine.PrettyPrinter.prototype.emitObject = jasmine.unimplementedMethod_;
- 67 jasmine.PrettyPrinter.prototype.emitScalar = jasmine.unimplementedMethod_;
- 68 jasmine.PrettyPrinter.prototype.emitString = jasmine.unimplementedMethod_;
- 69
- 70 jasmine.StringPrettyPrinter = function() {
- 71 jasmine.PrettyPrinter.call(this);
- 72
- 73 this.string = '';
- 74 };
- 75 jasmine.util.inherit(jasmine.StringPrettyPrinter, jasmine.PrettyPrinter);
- 76
- 77 jasmine.StringPrettyPrinter.prototype.emitScalar = function(value) {
- 78 this.append(value);
- 79 };
- 80
- 81 jasmine.StringPrettyPrinter.prototype.emitString = function(value) {
- 82 this.append("'" + value + "'");
- 83 };
- 84
- 85 jasmine.StringPrettyPrinter.prototype.emitArray = function(array) {
- 86 this.append('[ ');
- 87 for (var i = 0; i < array.length; i++) {
- 88 if (i > 0) {
- 89 this.append(', ');
- 90 }
- 91 this.format(array[i]);
- 92 }
- 93 this.append(' ]');
- 94 };
- 95
- 96 jasmine.StringPrettyPrinter.prototype.emitObject = function(obj) {
- 97 var self = this;
- 98 this.append('{ ');
- 99 var first = true;
-100
-101 this.iterateObject(obj, function(property, isGetter) {
-102 if (first) {
-103 first = false;
-104 } else {
-105 self.append(', ');
-106 }
-107
-108 self.append(property);
-109 self.append(' : ');
-110 if (isGetter) {
-111 self.append('<getter>');
-112 } else {
-113 self.format(obj[property]);
-114 }
-115 });
-116
-117 this.append(' }');
-118 };
-119
-120 jasmine.StringPrettyPrinter.prototype.append = function(value) {
-121 this.string += value;
-122 };
-123
\ No newline at end of file
diff --git a/doc/symbols/src/src_Queue.js.html b/doc/symbols/src/src_Queue.js.html
deleted file mode 100644
index fc81c105..00000000
--- a/doc/symbols/src/src_Queue.js.html
+++ /dev/null
@@ -1,102 +0,0 @@
- 1 jasmine.Queue = function(env) {
- 2 this.env = env;
- 3 this.blocks = [];
- 4 this.running = false;
- 5 this.index = 0;
- 6 this.offset = 0;
- 7 };
- 8
- 9 jasmine.Queue.prototype.addBefore = function(block) {
- 10 this.blocks.unshift(block);
- 11 };
- 12
- 13 jasmine.Queue.prototype.add = function(block) {
- 14 this.blocks.push(block);
- 15 };
- 16
- 17 jasmine.Queue.prototype.insertNext = function(block) {
- 18 this.blocks.splice((this.index + this.offset + 1), 0, block);
- 19 this.offset++;
- 20 };
- 21
- 22 jasmine.Queue.prototype.start = function(onComplete) {
- 23 this.running = true;
- 24 this.onComplete = onComplete;
- 25 this.next_();
- 26 };
- 27
- 28 jasmine.Queue.prototype.isRunning = function() {
- 29 return this.running;
- 30 };
- 31
- 32 jasmine.Queue.LOOP_DONT_RECURSE = true;
- 33
- 34 jasmine.Queue.prototype.next_ = function() {
- 35 var self = this;
- 36 var goAgain = true;
- 37
- 38 while (goAgain) {
- 39 goAgain = false;
- 40
- 41 if (self.index < self.blocks.length) {
- 42 var calledSynchronously = true;
- 43 var completedSynchronously = false;
- 44
- 45 var onComplete = function () {
- 46 if (jasmine.Queue.LOOP_DONT_RECURSE && calledSynchronously) {
- 47 completedSynchronously = true;
- 48 return;
- 49 }
- 50
- 51 self.offset = 0;
- 52 self.index++;
- 53
- 54 var now = new Date().getTime();
- 55 if (self.env.updateInterval && now - self.env.lastUpdate > self.env.updateInterval) {
- 56 self.env.lastUpdate = now;
- 57 self.env.setTimeout(function() {
- 58 self.next_();
- 59 }, 0);
- 60 } else {
- 61 if (jasmine.Queue.LOOP_DONT_RECURSE && completedSynchronously) {
- 62 goAgain = true;
- 63 } else {
- 64 self.next_();
- 65 }
- 66 }
- 67 };
- 68 self.blocks[self.index].execute(onComplete);
- 69
- 70 calledSynchronously = false;
- 71 if (completedSynchronously) {
- 72 onComplete();
- 73 }
- 74
- 75 } else {
- 76 self.running = false;
- 77 if (self.onComplete) {
- 78 self.onComplete();
- 79 }
- 80 }
- 81 }
- 82 };
- 83
- 84 jasmine.Queue.prototype.results = function() {
- 85 var results = new jasmine.NestedResults();
- 86 for (var i = 0; i < this.blocks.length; i++) {
- 87 if (this.blocks[i].results) {
- 88 results.addResult(this.blocks[i].results());
- 89 }
- 90 }
- 91 return results;
- 92 };
- 93
- 94
- 95
\ No newline at end of file
diff --git a/doc/symbols/src/src_Reporter.js.html b/doc/symbols/src/src_Reporter.js.html
deleted file mode 100644
index f5a65df3..00000000
--- a/doc/symbols/src/src_Reporter.js.html
+++ /dev/null
@@ -1,39 +0,0 @@
- 1 /** No-op base class for Jasmine reporters.
- 2 *
- 3 * @constructor
- 4 */
- 5 jasmine.Reporter = function() {
- 6 };
- 7
- 8 //noinspection JSUnusedLocalSymbols
- 9 jasmine.Reporter.prototype.reportRunnerStarting = function(runner) {
- 10 };
- 11
- 12 //noinspection JSUnusedLocalSymbols
- 13 jasmine.Reporter.prototype.reportRunnerResults = function(runner) {
- 14 };
- 15
- 16 //noinspection JSUnusedLocalSymbols
- 17 jasmine.Reporter.prototype.reportSuiteResults = function(suite) {
- 18 };
- 19
- 20 //noinspection JSUnusedLocalSymbols
- 21 jasmine.Reporter.prototype.reportSpecStarting = function(spec) {
- 22 };
- 23
- 24 //noinspection JSUnusedLocalSymbols
- 25 jasmine.Reporter.prototype.reportSpecResults = function(spec) {
- 26 };
- 27
- 28 //noinspection JSUnusedLocalSymbols
- 29 jasmine.Reporter.prototype.log = function(str) {
- 30 };
- 31
- 32
\ No newline at end of file
diff --git a/doc/symbols/src/src_Runner.js.html b/doc/symbols/src/src_Runner.js.html
deleted file mode 100644
index 1bb191d5..00000000
--- a/doc/symbols/src/src_Runner.js.html
+++ /dev/null
@@ -1,84 +0,0 @@
- 1 /**
- 2 * Runner
- 3 *
- 4 * @constructor
- 5 * @param {jasmine.Env} env
- 6 */
- 7 jasmine.Runner = function(env) {
- 8 var self = this;
- 9 self.env = env;
- 10 self.queue = new jasmine.Queue(env);
- 11 self.before_ = [];
- 12 self.after_ = [];
- 13 self.suites_ = [];
- 14 };
- 15
- 16 jasmine.Runner.prototype.execute = function() {
- 17 var self = this;
- 18 if (self.env.reporter.reportRunnerStarting) {
- 19 self.env.reporter.reportRunnerStarting(this);
- 20 }
- 21 self.queue.start(function () {
- 22 self.finishCallback();
- 23 });
- 24 };
- 25
- 26 jasmine.Runner.prototype.beforeEach = function(beforeEachFunction) {
- 27 beforeEachFunction.typeName = 'beforeEach';
- 28 this.before_.splice(0,0,beforeEachFunction);
- 29 };
- 30
- 31 jasmine.Runner.prototype.afterEach = function(afterEachFunction) {
- 32 afterEachFunction.typeName = 'afterEach';
- 33 this.after_.splice(0,0,afterEachFunction);
- 34 };
- 35
- 36
- 37 jasmine.Runner.prototype.finishCallback = function() {
- 38 this.env.reporter.reportRunnerResults(this);
- 39 };
- 40
- 41 jasmine.Runner.prototype.addSuite = function(suite) {
- 42 this.suites_.push(suite);
- 43 };
- 44
- 45 jasmine.Runner.prototype.add = function(block) {
- 46 if (block instanceof jasmine.Suite) {
- 47 this.addSuite(block);
- 48 }
- 49 this.queue.add(block);
- 50 };
- 51
- 52 jasmine.Runner.prototype.specs = function () {
- 53 var suites = this.suites();
- 54 var specs = [];
- 55 for (var i = 0; i < suites.length; i++) {
- 56 specs = specs.concat(suites[i].specs());
- 57 }
- 58 return specs;
- 59 };
- 60
- 61 jasmine.Runner.prototype.suites = function() {
- 62 return this.suites_;
- 63 };
- 64
- 65 jasmine.Runner.prototype.topLevelSuites = function() {
- 66 var topLevelSuites = [];
- 67 for (var i = 0; i < this.suites_.length; i++) {
- 68 if (!this.suites_[i].parentSuite) {
- 69 topLevelSuites.push(this.suites_[i]);
- 70 }
- 71 }
- 72 return topLevelSuites;
- 73 };
- 74
- 75 jasmine.Runner.prototype.results = function() {
- 76 return this.queue.results();
- 77 };
\ No newline at end of file
diff --git a/doc/symbols/src/src_Spec.js.html b/doc/symbols/src/src_Spec.js.html
deleted file mode 100644
index bc8ef257..00000000
--- a/doc/symbols/src/src_Spec.js.html
+++ /dev/null
@@ -1,218 +0,0 @@
- 1 /**
- 2 * Internal representation of a Jasmine specification, or test.
- 3 *
- 4 * @constructor
- 5 * @param {jasmine.Env} env
- 6 * @param {jasmine.Suite} suite
- 7 * @param {String} description
- 8 */
- 9 jasmine.Spec = function(env, suite, description) {
- 10 if (!env) {
- 11 throw new Error('jasmine.Env() required');
- 12 }
- 13 if (!suite) {
- 14 throw new Error('jasmine.Suite() required');
- 15 }
- 16 var spec = this;
- 17 spec.id = env.nextSpecId ? env.nextSpecId() : null;
- 18 spec.env = env;
- 19 spec.suite = suite;
- 20 spec.description = description;
- 21 spec.queue = new jasmine.Queue(env);
- 22
- 23 spec.afterCallbacks = [];
- 24 spec.spies_ = [];
- 25
- 26 spec.results_ = new jasmine.NestedResults();
- 27 spec.results_.description = description;
- 28 spec.matchersClass = null;
- 29 };
- 30
- 31 jasmine.Spec.prototype.getFullName = function() {
- 32 return this.suite.getFullName() + ' ' + this.description + '.';
- 33 };
- 34
- 35
- 36 jasmine.Spec.prototype.results = function() {
- 37 return this.results_;
- 38 };
- 39
- 40 /**
- 41 * All parameters are pretty-printed and concatenated together, then written to the spec's output.
- 42 *
- 43 * Be careful not to leave calls to <code>jasmine.log</code> in production code.
- 44 */
- 45 jasmine.Spec.prototype.log = function() {
- 46 return this.results_.log(arguments);
- 47 };
- 48
- 49 jasmine.Spec.prototype.runs = function (func) {
- 50 var block = new jasmine.Block(this.env, func, this);
- 51 this.addToQueue(block);
- 52 return this;
- 53 };
- 54
- 55 jasmine.Spec.prototype.addToQueue = function (block) {
- 56 if (this.queue.isRunning()) {
- 57 this.queue.insertNext(block);
- 58 } else {
- 59 this.queue.add(block);
- 60 }
- 61 };
- 62
- 63 /**
- 64 * @param {jasmine.ExpectationResult} result
- 65 */
- 66 jasmine.Spec.prototype.addMatcherResult = function(result) {
- 67 this.results_.addResult(result);
- 68 };
- 69
- 70 jasmine.Spec.prototype.expect = function(actual) {
- 71 var positive = new (this.getMatchersClass_())(this.env, actual, this);
- 72 positive.not = new (this.getMatchersClass_())(this.env, actual, this, true);
- 73 return positive;
- 74 };
- 75
- 76 jasmine.Spec.prototype.waits = function(timeout) {
- 77 var waitsFunc = new jasmine.WaitsBlock(this.env, timeout, this);
- 78 this.addToQueue(waitsFunc);
- 79 return this;
- 80 };
- 81
- 82 jasmine.Spec.prototype.waitsFor = function(timeout, latchFunction, timeoutMessage) {
- 83 var waitsForFunc = new jasmine.WaitsForBlock(this.env, timeout, latchFunction, timeoutMessage, this);
- 84 this.addToQueue(waitsForFunc);
- 85 return this;
- 86 };
- 87
- 88 jasmine.Spec.prototype.fail = function (e) {
- 89 var expectationResult = new jasmine.ExpectationResult({
- 90 passed: false,
- 91 message: e ? jasmine.util.formatException(e) : 'Exception'
- 92 });
- 93 this.results_.addResult(expectationResult);
- 94 };
- 95
- 96 jasmine.Spec.prototype.getMatchersClass_ = function() {
- 97 return this.matchersClass || this.env.matchersClass;
- 98 };
- 99
-100 jasmine.Spec.prototype.addMatchers = function(matchersPrototype) {
-101 var parent = this.getMatchersClass_();
-102 var newMatchersClass = function() {
-103 parent.apply(this, arguments);
-104 };
-105 jasmine.util.inherit(newMatchersClass, parent);
-106 jasmine.Matchers.wrapInto_(matchersPrototype, newMatchersClass);
-107 this.matchersClass = newMatchersClass;
-108 };
-109
-110 jasmine.Spec.prototype.finishCallback = function() {
-111 this.env.reporter.reportSpecResults(this);
-112 };
-113
-114 jasmine.Spec.prototype.finish = function(onComplete) {
-115 this.removeAllSpies();
-116 this.finishCallback();
-117 if (onComplete) {
-118 onComplete();
-119 }
-120 };
-121
-122 jasmine.Spec.prototype.after = function(doAfter) {
-123 if (this.queue.isRunning()) {
-124 this.queue.add(new jasmine.Block(this.env, doAfter, this));
-125 } else {
-126 this.afterCallbacks.unshift(doAfter);
-127 }
-128 };
-129
-130 jasmine.Spec.prototype.execute = function(onComplete) {
-131 var spec = this;
-132 if (!spec.env.specFilter(spec)) {
-133 spec.results_.skipped = true;
-134 spec.finish(onComplete);
-135 return;
-136 }
-137
-138 this.env.reporter.reportSpecStarting(this);
-139
-140 spec.env.currentSpec = spec;
-141
-142 spec.addBeforesAndAftersToQueue();
-143
-144 spec.queue.start(function () {
-145 spec.finish(onComplete);
-146 });
-147 };
-148
-149 jasmine.Spec.prototype.addBeforesAndAftersToQueue = function() {
-150 var runner = this.env.currentRunner();
-151 var i;
-152
-153 for (var suite = this.suite; suite; suite = suite.parentSuite) {
-154 for (i = 0; i < suite.before_.length; i++) {
-155 this.queue.addBefore(new jasmine.Block(this.env, suite.before_[i], this));
-156 }
-157 }
-158 for (i = 0; i < runner.before_.length; i++) {
-159 this.queue.addBefore(new jasmine.Block(this.env, runner.before_[i], this));
-160 }
-161 for (i = 0; i < this.afterCallbacks.length; i++) {
-162 this.queue.add(new jasmine.Block(this.env, this.afterCallbacks[i], this));
-163 }
-164 for (suite = this.suite; suite; suite = suite.parentSuite) {
-165 for (i = 0; i < suite.after_.length; i++) {
-166 this.queue.add(new jasmine.Block(this.env, suite.after_[i], this));
-167 }
-168 }
-169 for (i = 0; i < runner.after_.length; i++) {
-170 this.queue.add(new jasmine.Block(this.env, runner.after_[i], this));
-171 }
-172 };
-173
-174 jasmine.Spec.prototype.explodes = function() {
-175 throw 'explodes function should not have been called';
-176 };
-177
-178 jasmine.Spec.prototype.spyOn = function(obj, methodName, ignoreMethodDoesntExist) {
-179 if (obj == jasmine.undefined) {
-180 throw "spyOn could not find an object to spy upon for " + methodName + "()";
-181 }
-182
-183 if (!ignoreMethodDoesntExist && obj[methodName] === jasmine.undefined) {
-184 throw methodName + '() method does not exist';
-185 }
-186
-187 if (!ignoreMethodDoesntExist && obj[methodName] && obj[methodName].isSpy) {
-188 throw new Error(methodName + ' has already been spied upon');
-189 }
-190
-191 var spyObj = jasmine.createSpy(methodName);
-192
-193 this.spies_.push(spyObj);
-194 spyObj.baseObj = obj;
-195 spyObj.methodName = methodName;
-196 spyObj.originalValue = obj[methodName];
-197
-198 obj[methodName] = spyObj;
-199
-200 return spyObj;
-201 };
-202
-203 jasmine.Spec.prototype.removeAllSpies = function() {
-204 for (var i = 0; i < this.spies_.length; i++) {
-205 var spy = this.spies_[i];
-206 spy.baseObj[spy.methodName] = spy.originalValue;
-207 }
-208 this.spies_ = [];
-209 };
-210
-211
\ No newline at end of file
diff --git a/doc/symbols/src/src_Suite.js.html b/doc/symbols/src/src_Suite.js.html
deleted file mode 100644
index 3ff28aec..00000000
--- a/doc/symbols/src/src_Suite.js.html
+++ /dev/null
@@ -1,89 +0,0 @@
- 1 /**
- 2 * Internal representation of a Jasmine suite.
- 3 *
- 4 * @constructor
- 5 * @param {jasmine.Env} env
- 6 * @param {String} description
- 7 * @param {Function} specDefinitions
- 8 * @param {jasmine.Suite} parentSuite
- 9 */
- 10 jasmine.Suite = function(env, description, specDefinitions, parentSuite) {
- 11 var self = this;
- 12 self.id = env.nextSuiteId ? env.nextSuiteId() : null;
- 13 self.description = description;
- 14 self.queue = new jasmine.Queue(env);
- 15 self.parentSuite = parentSuite;
- 16 self.env = env;
- 17 self.before_ = [];
- 18 self.after_ = [];
- 19 self.children_ = [];
- 20 self.suites_ = [];
- 21 self.specs_ = [];
- 22 };
- 23
- 24 jasmine.Suite.prototype.getFullName = function() {
- 25 var fullName = this.description;
- 26 for (var parentSuite = this.parentSuite; parentSuite; parentSuite = parentSuite.parentSuite) {
- 27 fullName = parentSuite.description + ' ' + fullName;
- 28 }
- 29 return fullName;
- 30 };
- 31
- 32 jasmine.Suite.prototype.finish = function(onComplete) {
- 33 this.env.reporter.reportSuiteResults(this);
- 34 this.finished = true;
- 35 if (typeof(onComplete) == 'function') {
- 36 onComplete();
- 37 }
- 38 };
- 39
- 40 jasmine.Suite.prototype.beforeEach = function(beforeEachFunction) {
- 41 beforeEachFunction.typeName = 'beforeEach';
- 42 this.before_.unshift(beforeEachFunction);
- 43 };
- 44
- 45 jasmine.Suite.prototype.afterEach = function(afterEachFunction) {
- 46 afterEachFunction.typeName = 'afterEach';
- 47 this.after_.unshift(afterEachFunction);
- 48 };
- 49
- 50 jasmine.Suite.prototype.results = function() {
- 51 return this.queue.results();
- 52 };
- 53
- 54 jasmine.Suite.prototype.add = function(suiteOrSpec) {
- 55 this.children_.push(suiteOrSpec);
- 56 if (suiteOrSpec instanceof jasmine.Suite) {
- 57 this.suites_.push(suiteOrSpec);
- 58 this.env.currentRunner().addSuite(suiteOrSpec);
- 59 } else {
- 60 this.specs_.push(suiteOrSpec);
- 61 }
- 62 this.queue.add(suiteOrSpec);
- 63 };
- 64
- 65 jasmine.Suite.prototype.specs = function() {
- 66 return this.specs_;
- 67 };
- 68
- 69 jasmine.Suite.prototype.suites = function() {
- 70 return this.suites_;
- 71 };
- 72
- 73 jasmine.Suite.prototype.children = function() {
- 74 return this.children_;
- 75 };
- 76
- 77 jasmine.Suite.prototype.execute = function(onComplete) {
- 78 var self = this;
- 79 this.queue.start(function () {
- 80 self.finish(onComplete);
- 81 });
- 82 };
\ No newline at end of file
diff --git a/doc/symbols/src/src_WaitsBlock.js.html b/doc/symbols/src/src_WaitsBlock.js.html
deleted file mode 100644
index 4a1f1197..00000000
--- a/doc/symbols/src/src_WaitsBlock.js.html
+++ /dev/null
@@ -1,21 +0,0 @@
- 1 jasmine.WaitsBlock = function(env, timeout, spec) {
- 2 this.timeout = timeout;
- 3 jasmine.Block.call(this, env, null, spec);
- 4 };
- 5
- 6 jasmine.util.inherit(jasmine.WaitsBlock, jasmine.Block);
- 7
- 8 jasmine.WaitsBlock.prototype.execute = function (onComplete) {
- 9 this.env.reporter.log('>> Jasmine waiting for ' + this.timeout + ' ms...');
- 10 this.env.setTimeout(function () {
- 11 onComplete();
- 12 }, this.timeout);
- 13 };
- 14
\ No newline at end of file
diff --git a/doc/symbols/src/src_WaitsForBlock.js.html b/doc/symbols/src/src_WaitsForBlock.js.html
deleted file mode 100644
index 18c2bda5..00000000
--- a/doc/symbols/src/src_WaitsForBlock.js.html
+++ /dev/null
@@ -1,44 +0,0 @@
- 1 jasmine.WaitsForBlock = function(env, timeout, latchFunction, message, spec) {
- 2 this.timeout = timeout;
- 3 this.latchFunction = latchFunction;
- 4 this.message = message;
- 5 this.totalTimeSpentWaitingForLatch = 0;
- 6 jasmine.Block.call(this, env, null, spec);
- 7 };
- 8
- 9 jasmine.util.inherit(jasmine.WaitsForBlock, jasmine.Block);
- 10
- 11 jasmine.WaitsForBlock.TIMEOUT_INCREMENT = 100;
- 12
- 13 jasmine.WaitsForBlock.prototype.execute = function (onComplete) {
- 14 var self = this;
- 15 self.env.reporter.log('>> Jasmine waiting for ' + (self.message || 'something to happen'));
- 16 var latchFunctionResult;
- 17 try {
- 18 latchFunctionResult = self.latchFunction.apply(self.spec);
- 19 } catch (e) {
- 20 self.spec.fail(e);
- 21 onComplete();
- 22 return;
- 23 }
- 24
- 25 if (latchFunctionResult) {
- 26 onComplete();
- 27 } else if (self.totalTimeSpentWaitingForLatch >= self.timeout) {
- 28 var message = 'timed out after ' + self.timeout + ' msec waiting for ' + (self.message || 'something to happen');
- 29 self.spec.fail({
- 30 name: 'timeout',
- 31 message: message
- 32 });
- 33 } else {
- 34 self.totalTimeSpentWaitingForLatch += jasmine.WaitsForBlock.TIMEOUT_INCREMENT;
- 35 self.env.setTimeout(function () { self.execute(onComplete); }, jasmine.WaitsForBlock.TIMEOUT_INCREMENT);
- 36 }
- 37 };
\ No newline at end of file
diff --git a/doc/symbols/src/src_base.js.html b/doc/symbols/src/src_base.js.html
deleted file mode 100644
index 83bd46b4..00000000
--- a/doc/symbols/src/src_base.js.html
+++ /dev/null
@@ -1,590 +0,0 @@
- 1 /**
- 2 * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
- 3 *
- 4 * @namespace
- 5 */
- 6 var jasmine = {};
- 7
- 8 /**
- 9 * @private
- 10 */
- 11 jasmine.unimplementedMethod_ = function() {
- 12 throw new Error("unimplemented method");
- 13 };
- 14
- 15 /**
- 16 * Use <code>jasmine.undefined</code> instead of <code>undefined</code>, since <code>undefined</code> is just
- 17 * a plain old variable and may be redefined by somebody else.
- 18 *
- 19 * @private
- 20 */
- 21 jasmine.undefined = jasmine.___undefined___;
- 22
- 23 /**
- 24 * Default interval for event loop yields. Small values here may result in slow test running. Zero means no updates until all tests have completed.
- 25 *
- 26 */
- 27 jasmine.DEFAULT_UPDATE_INTERVAL = 250;
- 28
- 29 jasmine.getGlobal = function() {
- 30 function getGlobal() {
- 31 return this;
- 32 }
- 33
- 34 return getGlobal();
- 35 };
- 36
- 37 /**
- 38 * Allows for bound functions to be compared. Internal use only.
- 39 *
- 40 * @ignore
- 41 * @private
- 42 * @param base {Object} bound 'this' for the function
- 43 * @param name {Function} function to find
- 44 */
- 45 jasmine.bindOriginal_ = function(base, name) {
- 46 var original = base[name];
- 47 if (original.apply) {
- 48 return function() {
- 49 return original.apply(base, arguments);
- 50 };
- 51 } else {
- 52 // IE support
- 53 return jasmine.getGlobal()[name];
- 54 }
- 55 };
- 56
- 57 jasmine.setTimeout = jasmine.bindOriginal_(jasmine.getGlobal(), 'setTimeout');
- 58 jasmine.clearTimeout = jasmine.bindOriginal_(jasmine.getGlobal(), 'clearTimeout');
- 59 jasmine.setInterval = jasmine.bindOriginal_(jasmine.getGlobal(), 'setInterval');
- 60 jasmine.clearInterval = jasmine.bindOriginal_(jasmine.getGlobal(), 'clearInterval');
- 61
- 62 jasmine.MessageResult = function(values) {
- 63 this.type = 'log';
- 64 this.values = values;
- 65 this.trace = new Error(); // todo: test better
- 66 };
- 67
- 68 jasmine.MessageResult.prototype.toString = function() {
- 69 var text = "";
- 70 for(var i = 0; i < this.values.length; i++) {
- 71 if (i > 0) text += " ";
- 72 if (jasmine.isString_(this.values[i])) {
- 73 text += this.values[i];
- 74 } else {
- 75 text += jasmine.pp(this.values[i]);
- 76 }
- 77 }
- 78 return text;
- 79 };
- 80
- 81 jasmine.ExpectationResult = function(params) {
- 82 this.type = 'expect';
- 83 this.matcherName = params.matcherName;
- 84 this.passed_ = params.passed;
- 85 this.expected = params.expected;
- 86 this.actual = params.actual;
- 87
- 88 this.message = this.passed_ ? 'Passed.' : params.message;
- 89 this.trace = this.passed_ ? '' : new Error(this.message);
- 90 };
- 91
- 92 jasmine.ExpectationResult.prototype.toString = function () {
- 93 return this.message;
- 94 };
- 95
- 96 jasmine.ExpectationResult.prototype.passed = function () {
- 97 return this.passed_;
- 98 };
- 99
-100 /**
-101 * Getter for the Jasmine environment. Ensures one gets created
-102 */
-103 jasmine.getEnv = function() {
-104 return jasmine.currentEnv_ = jasmine.currentEnv_ || new jasmine.Env();
-105 };
-106
-107 /**
-108 * @ignore
-109 * @private
-110 * @param value
-111 * @returns {Boolean}
-112 */
-113 jasmine.isArray_ = function(value) {
-114 return jasmine.isA_("Array", value);
-115 };
-116
-117 /**
-118 * @ignore
-119 * @private
-120 * @param value
-121 * @returns {Boolean}
-122 */
-123 jasmine.isString_ = function(value) {
-124 return jasmine.isA_("String", value);
-125 };
-126
-127 /**
-128 * @ignore
-129 * @private
-130 * @param value
-131 * @returns {Boolean}
-132 */
-133 jasmine.isNumber_ = function(value) {
-134 return jasmine.isA_("Number", value);
-135 };
-136
-137 /**
-138 * @ignore
-139 * @private
-140 * @param {String} typeName
-141 * @param value
-142 * @returns {Boolean}
-143 */
-144 jasmine.isA_ = function(typeName, value) {
-145 return Object.prototype.toString.apply(value) === '[object ' + typeName + ']';
-146 };
-147
-148 /**
-149 * Pretty printer for expecations. Takes any object and turns it into a human-readable string.
-150 *
-151 * @param value {Object} an object to be outputted
-152 * @returns {String}
-153 */
-154 jasmine.pp = function(value) {
-155 var stringPrettyPrinter = new jasmine.StringPrettyPrinter();
-156 stringPrettyPrinter.format(value);
-157 return stringPrettyPrinter.string;
-158 };
-159
-160 /**
-161 * Returns true if the object is a DOM Node.
-162 *
-163 * @param {Object} obj object to check
-164 * @returns {Boolean}
-165 */
-166 jasmine.isDomNode = function(obj) {
-167 return obj['nodeType'] > 0;
-168 };
-169
-170 /**
-171 * Returns a matchable 'generic' object of the class type. For use in expecations of type when values don't matter.
-172 *
-173 * @example
-174 * // don't care about which function is passed in, as long as it's a function
-175 * expect(mySpy).toHaveBeenCalledWith(jasmine.any(Function));
-176 *
-177 * @param {Class} clazz
-178 * @returns matchable object of the type clazz
-179 */
-180 jasmine.any = function(clazz) {
-181 return new jasmine.Matchers.Any(clazz);
-182 };
-183
-184 /**
-185 * Jasmine Spies are test doubles that can act as stubs, spies, fakes or when used in an expecation, mocks.
-186 *
-187 * Spies should be created in test setup, before expectations. They can then be checked, using the standard Jasmine
-188 * expectation syntax. Spies can be checked if they were called or not and what the calling params were.
-189 *
-190 * A Spy has the following fields: wasCalled, callCount, mostRecentCall, and argsForCall (see docs).
-191 *
-192 * Spies are torn down at the end of every spec.
-193 *
-194 * Note: Do <b>not</b> call new jasmine.Spy() directly - a spy must be created using spyOn, jasmine.createSpy or jasmine.createSpyObj.
-195 *
-196 * @example
-197 * // a stub
-198 * var myStub = jasmine.createSpy('myStub'); // can be used anywhere
-199 *
-200 * // spy example
-201 * var foo = {
-202 * not: function(bool) { return !bool; }
-203 * }
-204 *
-205 * // actual foo.not will not be called, execution stops
-206 * spyOn(foo, 'not');
-207
-208 // foo.not spied upon, execution will continue to implementation
-209 * spyOn(foo, 'not').andCallThrough();
-210 *
-211 * // fake example
-212 * var foo = {
-213 * not: function(bool) { return !bool; }
-214 * }
-215 *
-216 * // foo.not(val) will return val
-217 * spyOn(foo, 'not').andCallFake(function(value) {return value;});
-218 *
-219 * // mock example
-220 * foo.not(7 == 7);
-221 * expect(foo.not).toHaveBeenCalled();
-222 * expect(foo.not).toHaveBeenCalledWith(true);
-223 *
-224 * @constructor
-225 * @see spyOn, jasmine.createSpy, jasmine.createSpyObj
-226 * @param {String} name
-227 */
-228 jasmine.Spy = function(name) {
-229 /**
-230 * The name of the spy, if provided.
-231 */
-232 this.identity = name || 'unknown';
-233 /**
-234 * Is this Object a spy?
-235 */
-236 this.isSpy = true;
-237 /**
-238 * The actual function this spy stubs.
-239 */
-240 this.plan = function() {
-241 };
-242 /**
-243 * Tracking of the most recent call to the spy.
-244 * @example
-245 * var mySpy = jasmine.createSpy('foo');
-246 * mySpy(1, 2);
-247 * mySpy.mostRecentCall.args = [1, 2];
-248 */
-249 this.mostRecentCall = {};
-250
-251 /**
-252 * Holds arguments for each call to the spy, indexed by call count
-253 * @example
-254 * var mySpy = jasmine.createSpy('foo');
-255 * mySpy(1, 2);
-256 * mySpy(7, 8);
-257 * mySpy.mostRecentCall.args = [7, 8];
-258 * mySpy.argsForCall[0] = [1, 2];
-259 * mySpy.argsForCall[1] = [7, 8];
-260 */
-261 this.argsForCall = [];
-262 this.calls = [];
-263 };
-264
-265 /**
-266 * Tells a spy to call through to the actual implemenatation.
-267 *
-268 * @example
-269 * var foo = {
-270 * bar: function() { // do some stuff }
-271 * }
-272 *
-273 * // defining a spy on an existing property: foo.bar
-274 * spyOn(foo, 'bar').andCallThrough();
-275 */
-276 jasmine.Spy.prototype.andCallThrough = function() {
-277 this.plan = this.originalValue;
-278 return this;
-279 };
-280
-281 /**
-282 * For setting the return value of a spy.
-283 *
-284 * @example
-285 * // defining a spy from scratch: foo() returns 'baz'
-286 * var foo = jasmine.createSpy('spy on foo').andReturn('baz');
-287 *
-288 * // defining a spy on an existing property: foo.bar() returns 'baz'
-289 * spyOn(foo, 'bar').andReturn('baz');
-290 *
-291 * @param {Object} value
-292 */
-293 jasmine.Spy.prototype.andReturn = function(value) {
-294 this.plan = function() {
-295 return value;
-296 };
-297 return this;
-298 };
-299
-300 /**
-301 * For throwing an exception when a spy is called.
-302 *
-303 * @example
-304 * // defining a spy from scratch: foo() throws an exception w/ message 'ouch'
-305 * var foo = jasmine.createSpy('spy on foo').andThrow('baz');
-306 *
-307 * // defining a spy on an existing property: foo.bar() throws an exception w/ message 'ouch'
-308 * spyOn(foo, 'bar').andThrow('baz');
-309 *
-310 * @param {String} exceptionMsg
-311 */
-312 jasmine.Spy.prototype.andThrow = function(exceptionMsg) {
-313 this.plan = function() {
-314 throw exceptionMsg;
-315 };
-316 return this;
-317 };
-318
-319 /**
-320 * Calls an alternate implementation when a spy is called.
-321 *
-322 * @example
-323 * var baz = function() {
-324 * // do some stuff, return something
-325 * }
-326 * // defining a spy from scratch: foo() calls the function baz
-327 * var foo = jasmine.createSpy('spy on foo').andCall(baz);
-328 *
-329 * // defining a spy on an existing property: foo.bar() calls an anonymnous function
-330 * spyOn(foo, 'bar').andCall(function() { return 'baz';} );
-331 *
-332 * @param {Function} fakeFunc
-333 */
-334 jasmine.Spy.prototype.andCallFake = function(fakeFunc) {
-335 this.plan = fakeFunc;
-336 return this;
-337 };
-338
-339 /**
-340 * Resets all of a spy's the tracking variables so that it can be used again.
-341 *
-342 * @example
-343 * spyOn(foo, 'bar');
-344 *
-345 * foo.bar();
-346 *
-347 * expect(foo.bar.callCount).toEqual(1);
-348 *
-349 * foo.bar.reset();
-350 *
-351 * expect(foo.bar.callCount).toEqual(0);
-352 */
-353 jasmine.Spy.prototype.reset = function() {
-354 this.wasCalled = false;
-355 this.callCount = 0;
-356 this.argsForCall = [];
-357 this.calls = [];
-358 this.mostRecentCall = {};
-359 };
-360
-361 jasmine.createSpy = function(name) {
-362
-363 var spyObj = function() {
-364 spyObj.wasCalled = true;
-365 spyObj.callCount++;
-366 var args = jasmine.util.argsToArray(arguments);
-367 spyObj.mostRecentCall.object = this;
-368 spyObj.mostRecentCall.args = args;
-369 spyObj.argsForCall.push(args);
-370 spyObj.calls.push({object: this, args: args});
-371 return spyObj.plan.apply(this, arguments);
-372 };
-373
-374 var spy = new jasmine.Spy(name);
-375
-376 for (var prop in spy) {
-377 spyObj[prop] = spy[prop];
-378 }
-379
-380 spyObj.reset();
-381
-382 return spyObj;
-383 };
-384
-385 /**
-386 * Determines whether an object is a spy.
-387 *
-388 * @param {jasmine.Spy|Object} putativeSpy
-389 * @returns {Boolean}
-390 */
-391 jasmine.isSpy = function(putativeSpy) {
-392 return putativeSpy && putativeSpy.isSpy;
-393 };
-394
-395 /**
-396 * Creates a more complicated spy: an Object that has every property a function that is a spy. Used for stubbing something
-397 * large in one call.
-398 *
-399 * @param {String} baseName name of spy class
-400 * @param {Array} methodNames array of names of methods to make spies
-401 */
-402 jasmine.createSpyObj = function(baseName, methodNames) {
-403 if (!jasmine.isArray_(methodNames) || methodNames.length == 0) {
-404 throw new Error('createSpyObj requires a non-empty array of method names to create spies for');
-405 }
-406 var obj = {};
-407 for (var i = 0; i < methodNames.length; i++) {
-408 obj[methodNames[i]] = jasmine.createSpy(baseName + '.' + methodNames[i]);
-409 }
-410 return obj;
-411 };
-412
-413 /**
-414 * All parameters are pretty-printed and concatenated together, then written to the current spec's output.
-415 *
-416 * Be careful not to leave calls to <code>jasmine.log</code> in production code.
-417 */
-418 jasmine.log = function() {
-419 var spec = jasmine.getEnv().currentSpec;
-420 spec.log.apply(spec, arguments);
-421 };
-422
-423 /**
-424 * Function that installs a spy on an existing object's method name. Used within a Spec to create a spy.
-425 *
-426 * @example
-427 * // spy example
-428 * var foo = {
-429 * not: function(bool) { return !bool; }
-430 * }
-431 * spyOn(foo, 'not'); // actual foo.not will not be called, execution stops
-432 *
-433 * @see jasmine.createSpy
-434 * @param obj
-435 * @param methodName
-436 * @returns a Jasmine spy that can be chained with all spy methods
-437 */
-438 var spyOn = function(obj, methodName) {
-439 return jasmine.getEnv().currentSpec.spyOn(obj, methodName);
-440 };
-441
-442 /**
-443 * Creates a Jasmine spec that will be added to the current suite.
-444 *
-445 * // TODO: pending tests
-446 *
-447 * @example
-448 * it('should be true', function() {
-449 * expect(true).toEqual(true);
-450 * });
-451 *
-452 * @param {String} desc description of this specification
-453 * @param {Function} func defines the preconditions and expectations of the spec
-454 */
-455 var it = function(desc, func) {
-456 return jasmine.getEnv().it(desc, func);
-457 };
-458
-459 /**
-460 * Creates a <em>disabled</em> Jasmine spec.
-461 *
-462 * A convenience method that allows existing specs to be disabled temporarily during development.
-463 *
-464 * @param {String} desc description of this specification
-465 * @param {Function} func defines the preconditions and expectations of the spec
-466 */
-467 var xit = function(desc, func) {
-468 return jasmine.getEnv().xit(desc, func);
-469 };
-470
-471 /**
-472 * Starts a chain for a Jasmine expectation.
-473 *
-474 * It is passed an Object that is the actual value and should chain to one of the many
-475 * jasmine.Matchers functions.
-476 *
-477 * @param {Object} actual Actual value to test against and expected value
-478 */
-479 var expect = function(actual) {
-480 return jasmine.getEnv().currentSpec.expect(actual);
-481 };
-482
-483 /**
-484 * Defines part of a jasmine spec. Used in cominbination with waits or waitsFor in asynchrnous specs.
-485 *
-486 * @param {Function} func Function that defines part of a jasmine spec.
-487 */
-488 var runs = function(func) {
-489 jasmine.getEnv().currentSpec.runs(func);
-490 };
-491
-492 /**
-493 * Waits for a timeout before moving to the next runs()-defined block.
-494 * @param {Number} timeout
-495 */
-496 var waits = function(timeout) {
-497 jasmine.getEnv().currentSpec.waits(timeout);
-498 };
-499
-500 /**
-501 * Waits for the latchFunction to return true before proceeding to the next runs()-defined block.
-502 *
-503 * @param {Number} timeout
-504 * @param {Function} latchFunction
-505 * @param {String} message
-506 */
-507 var waitsFor = function(timeout, latchFunction, message) {
-508 jasmine.getEnv().currentSpec.waitsFor(timeout, latchFunction, message);
-509 };
-510
-511 /**
-512 * A function that is called before each spec in a suite.
-513 *
-514 * Used for spec setup, including validating assumptions.
-515 *
-516 * @param {Function} beforeEachFunction
-517 */
-518 var beforeEach = function(beforeEachFunction) {
-519 jasmine.getEnv().beforeEach(beforeEachFunction);
-520 };
-521
-522 /**
-523 * A function that is called after each spec in a suite.
-524 *
-525 * Used for restoring any state that is hijacked during spec execution.
-526 *
-527 * @param {Function} afterEachFunction
-528 */
-529 var afterEach = function(afterEachFunction) {
-530 jasmine.getEnv().afterEach(afterEachFunction);
-531 };
-532
-533 /**
-534 * Defines a suite of specifications.
-535 *
-536 * Stores the description and all defined specs in the Jasmine environment as one suite of specs. Variables declared
-537 * are accessible by calls to beforeEach, it, and afterEach. Describe blocks can be nested, allowing for specialization
-538 * of setup in some tests.
-539 *
-540 * @example
-541 * // TODO: a simple suite
-542 *
-543 * // TODO: a simple suite with a nested describe block
-544 *
-545 * @param {String} description A string, usually the class under test.
-546 * @param {Function} specDefinitions function that defines several specs.
-547 */
-548 var describe = function(description, specDefinitions) {
-549 return jasmine.getEnv().describe(description, specDefinitions);
-550 };
-551
-552 /**
-553 * Disables a suite of specifications. Used to disable some suites in a file, or files, temporarily during development.
-554 *
-555 * @param {String} description A string, usually the class under test.
-556 * @param {Function} specDefinitions function that defines several specs.
-557 */
-558 var xdescribe = function(description, specDefinitions) {
-559 return jasmine.getEnv().xdescribe(description, specDefinitions);
-560 };
-561
-562
-563 // Provide the XMLHttpRequest class for IE 5.x-6.x:
-564 jasmine.XmlHttpRequest = (typeof XMLHttpRequest == "undefined") ? function() {
-565 try {
-566 return new ActiveXObject("Msxml2.XMLHTTP.6.0");
-567 } catch(e) {
-568 }
-569 try {
-570 return new ActiveXObject("Msxml2.XMLHTTP.3.0");
-571 } catch(e) {
-572 }
-573 try {
-574 return new ActiveXObject("Msxml2.XMLHTTP");
-575 } catch(e) {
-576 }
-577 try {
-578 return new ActiveXObject("Microsoft.XMLHTTP");
-579 } catch(e) {
-580 }
-581 throw new Error("This browser does not support XMLHttpRequest.");
-582 } : XMLHttpRequest;
-583
\ No newline at end of file
diff --git a/doc/symbols/src/src_html_TrivialReporter.js.html b/doc/symbols/src/src_html_TrivialReporter.js.html
deleted file mode 100644
index e9cb7b4a..00000000
--- a/doc/symbols/src/src_html_TrivialReporter.js.html
+++ /dev/null
@@ -1,190 +0,0 @@
- 1 jasmine.TrivialReporter = function(doc) {
- 2 this.document = doc || document;
- 3 this.suiteDivs = {};
- 4 this.logRunningSpecs = false;
- 5 };
- 6
- 7 jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
- 8 var el = document.createElement(type);
- 9
- 10 for (var i = 2; i < arguments.length; i++) {
- 11 var child = arguments[i];
- 12
- 13 if (typeof child === 'string') {
- 14 el.appendChild(document.createTextNode(child));
- 15 } else {
- 16 if (child) { el.appendChild(child); }
- 17 }
- 18 }
- 19
- 20 for (var attr in attrs) {
- 21 if (attr == "className") {
- 22 el[attr] = attrs[attr];
- 23 } else {
- 24 el.setAttribute(attr, attrs[attr]);
- 25 }
- 26 }
- 27
- 28 return el;
- 29 };
- 30
- 31 jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
- 32 var showPassed, showSkipped;
- 33
- 34 this.outerDiv = this.createDom('div', { className: 'jasmine_reporter' },
- 35 this.createDom('div', { className: 'banner' },
- 36 this.createDom('div', { className: 'logo' },
- 37 "Jasmine",
- 38 this.createDom('span', { className: 'version' }, runner.env.versionString())),
- 39 this.createDom('div', { className: 'options' },
- 40 "Show ",
- 41 showPassed = this.createDom('input', { id: "__jasmine_TrivialReporter_showPassed__", type: 'checkbox' }),
- 42 this.createDom('label', { "for": "__jasmine_TrivialReporter_showPassed__" }, " passed "),
- 43 showSkipped = this.createDom('input', { id: "__jasmine_TrivialReporter_showSkipped__", type: 'checkbox' }),
- 44 this.createDom('label', { "for": "__jasmine_TrivialReporter_showSkipped__" }, " skipped")
- 45 )
- 46 ),
- 47
- 48 this.runnerDiv = this.createDom('div', { className: 'runner running' },
- 49 this.createDom('a', { className: 'run_spec', href: '?' }, "run all"),
- 50 this.runnerMessageSpan = this.createDom('span', {}, "Running..."),
- 51 this.finishedAtSpan = this.createDom('span', { className: 'finished-at' }, ""))
- 52 );
- 53
- 54 this.document.body.appendChild(this.outerDiv);
- 55
- 56 var suites = runner.suites();
- 57 for (var i = 0; i < suites.length; i++) {
- 58 var suite = suites[i];
- 59 var suiteDiv = this.createDom('div', { className: 'suite' },
- 60 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),
- 61 this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, suite.description));
- 62 this.suiteDivs[suite.id] = suiteDiv;
- 63 var parentDiv = this.outerDiv;
- 64 if (suite.parentSuite) {
- 65 parentDiv = this.suiteDivs[suite.parentSuite.id];
- 66 }
- 67 parentDiv.appendChild(suiteDiv);
- 68 }
- 69
- 70 this.startedAt = new Date();
- 71
- 72 var self = this;
- 73 showPassed.onchange = function(evt) {
- 74 if (evt.target.checked) {
- 75 self.outerDiv.className += ' show-passed';
- 76 } else {
- 77 self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, '');
- 78 }
- 79 };
- 80
- 81 showSkipped.onchange = function(evt) {
- 82 if (evt.target.checked) {
- 83 self.outerDiv.className += ' show-skipped';
- 84 } else {
- 85 self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, '');
- 86 }
- 87 };
- 88 };
- 89
- 90 jasmine.TrivialReporter.prototype.reportRunnerResults = function(runner) {
- 91 var results = runner.results();
- 92 var className = (results.failedCount > 0) ? "runner failed" : "runner passed";
- 93 this.runnerDiv.setAttribute("class", className);
- 94 //do it twice for IE
- 95 this.runnerDiv.setAttribute("className", className);
- 96 var specs = runner.specs();
- 97 var specCount = 0;
- 98 for (var i = 0; i < specs.length; i++) {
- 99 if (this.specFilter(specs[i])) {
-100 specCount++;
-101 }
-102 }
-103 var message = "" + specCount + " spec" + (specCount == 1 ? "" : "s" ) + ", " + results.failedCount + " failure" + ((results.failedCount == 1) ? "" : "s");
-104 message += " in " + ((new Date().getTime() - this.startedAt.getTime()) / 1000) + "s";
-105 this.runnerMessageSpan.replaceChild(this.createDom('a', { className: 'description', href: '?'}, message), this.runnerMessageSpan.firstChild);
-106
-107 this.finishedAtSpan.appendChild(document.createTextNode("Finished at " + new Date().toString()));
-108 };
-109
-110 jasmine.TrivialReporter.prototype.reportSuiteResults = function(suite) {
-111 var results = suite.results();
-112 var status = results.passed() ? 'passed' : 'failed';
-113 if (results.totalCount == 0) { // todo: change this to check results.skipped
-114 status = 'skipped';
-115 }
-116 this.suiteDivs[suite.id].className += " " + status;
-117 };
-118
-119 jasmine.TrivialReporter.prototype.reportSpecStarting = function(spec) {
-120 if (this.logRunningSpecs) {
-121 this.log('>> Jasmine Running ' + spec.suite.description + ' ' + spec.description + '...');
-122 }
-123 };
-124
-125 jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
-126 var results = spec.results();
-127 var status = results.passed() ? 'passed' : 'failed';
-128 if (results.skipped) {
-129 status = 'skipped';
-130 }
-131 var specDiv = this.createDom('div', { className: 'spec ' + status },
-132 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),
-133 this.createDom('a', {
-134 className: 'description',
-135 href: '?spec=' + encodeURIComponent(spec.getFullName()),
-136 title: spec.getFullName()
-137 }, spec.description));
-138
-139
-140 var resultItems = results.getItems();
-141 var messagesDiv = this.createDom('div', { className: 'messages' });
-142 for (var i = 0; i < resultItems.length; i++) {
-143 var result = resultItems[i];
-144
-145 if (result.type == 'log') {
-146 messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage log'}, result.toString()));
-147 } else if (result.type == 'expect' && result.passed && !result.passed()) {
-148 messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage fail'}, result.message));
-149
-150 if (result.trace.stack) {
-151 messagesDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack));
-152 }
-153 }
-154 }
-155
-156 if (messagesDiv.childNodes.length > 0) {
-157 specDiv.appendChild(messagesDiv);
-158 }
-159
-160 this.suiteDivs[spec.suite.id].appendChild(specDiv);
-161 };
-162
-163 jasmine.TrivialReporter.prototype.log = function() {
-164 var console = jasmine.getGlobal().console;
-165 if (console && console.log) console.log.apply(console, arguments);
-166 };
-167
-168 jasmine.TrivialReporter.prototype.getLocation = function() {
-169 return this.document.location;
-170 };
-171
-172 jasmine.TrivialReporter.prototype.specFilter = function(spec) {
-173 var paramMap = {};
-174 var params = this.getLocation().search.substring(1).split('&');
-175 for (var i = 0; i < params.length; i++) {
-176 var p = params[i].split('=');
-177 paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
-178 }
-179
-180 if (!paramMap["spec"]) return true;
-181 return spec.getFullName().indexOf(paramMap["spec"]) == 0;
-182 };
-183
\ No newline at end of file
diff --git a/doc/symbols/src/src_mock-timeout.js.html b/doc/symbols/src/src_mock-timeout.js.html
deleted file mode 100644
index 93f9afcd..00000000
--- a/doc/symbols/src/src_mock-timeout.js.html
+++ /dev/null
@@ -1,191 +0,0 @@
- 1 // Mock setTimeout, clearTimeout
- 2 // Contributed by Pivotal Computer Systems, www.pivotalsf.com
- 3
- 4 jasmine.FakeTimer = function() {
- 5 this.reset();
- 6
- 7 var self = this;
- 8 self.setTimeout = function(funcToCall, millis) {
- 9 self.timeoutsMade++;
- 10 self.scheduleFunction(self.timeoutsMade, funcToCall, millis, false);
- 11 return self.timeoutsMade;
- 12 };
- 13
- 14 self.setInterval = function(funcToCall, millis) {
- 15 self.timeoutsMade++;
- 16 self.scheduleFunction(self.timeoutsMade, funcToCall, millis, true);
- 17 return self.timeoutsMade;
- 18 };
- 19
- 20 self.clearTimeout = function(timeoutKey) {
- 21 self.scheduledFunctions[timeoutKey] = jasmine.undefined;
- 22 };
- 23
- 24 self.clearInterval = function(timeoutKey) {
- 25 self.scheduledFunctions[timeoutKey] = jasmine.undefined;
- 26 };
- 27
- 28 };
- 29
- 30 jasmine.FakeTimer.prototype.reset = function() {
- 31 this.timeoutsMade = 0;
- 32 this.scheduledFunctions = {};
- 33 this.nowMillis = 0;
- 34 };
- 35
- 36 jasmine.FakeTimer.prototype.tick = function(millis) {
- 37 var oldMillis = this.nowMillis;
- 38 var newMillis = oldMillis + millis;
- 39 this.runFunctionsWithinRange(oldMillis, newMillis);
- 40 this.nowMillis = newMillis;
- 41 };
- 42
- 43 jasmine.FakeTimer.prototype.runFunctionsWithinRange = function(oldMillis, nowMillis) {
- 44 var scheduledFunc;
- 45 var funcsToRun = [];
- 46 for (var timeoutKey in this.scheduledFunctions) {
- 47 scheduledFunc = this.scheduledFunctions[timeoutKey];
- 48 if (scheduledFunc != jasmine.undefined &&
- 49 scheduledFunc.runAtMillis >= oldMillis &&
- 50 scheduledFunc.runAtMillis <= nowMillis) {
- 51 funcsToRun.push(scheduledFunc);
- 52 this.scheduledFunctions[timeoutKey] = jasmine.undefined;
- 53 }
- 54 }
- 55
- 56 if (funcsToRun.length > 0) {
- 57 funcsToRun.sort(function(a, b) {
- 58 return a.runAtMillis - b.runAtMillis;
- 59 });
- 60 for (var i = 0; i < funcsToRun.length; ++i) {
- 61 try {
- 62 var funcToRun = funcsToRun[i];
- 63 this.nowMillis = funcToRun.runAtMillis;
- 64 funcToRun.funcToCall();
- 65 if (funcToRun.recurring) {
- 66 this.scheduleFunction(funcToRun.timeoutKey,
- 67 funcToRun.funcToCall,
- 68 funcToRun.millis,
- 69 true);
- 70 }
- 71 } catch(e) {
- 72 }
- 73 }
- 74 this.runFunctionsWithinRange(oldMillis, nowMillis);
- 75 }
- 76 };
- 77
- 78 jasmine.FakeTimer.prototype.scheduleFunction = function(timeoutKey, funcToCall, millis, recurring) {
- 79 this.scheduledFunctions[timeoutKey] = {
- 80 runAtMillis: this.nowMillis + millis,
- 81 funcToCall: funcToCall,
- 82 recurring: recurring,
- 83 timeoutKey: timeoutKey,
- 84 millis: millis
- 85 };
- 86 };
- 87
- 88 /**
- 89 * @namespace
- 90 */
- 91 jasmine.Clock = {
- 92 defaultFakeTimer: new jasmine.FakeTimer(),
- 93
- 94 reset: function() {
- 95 jasmine.Clock.assertInstalled();
- 96 jasmine.Clock.defaultFakeTimer.reset();
- 97 },
- 98
- 99 tick: function(millis) {
-100 jasmine.Clock.assertInstalled();
-101 jasmine.Clock.defaultFakeTimer.tick(millis);
-102 },
-103
-104 runFunctionsWithinRange: function(oldMillis, nowMillis) {
-105 jasmine.Clock.defaultFakeTimer.runFunctionsWithinRange(oldMillis, nowMillis);
-106 },
-107
-108 scheduleFunction: function(timeoutKey, funcToCall, millis, recurring) {
-109 jasmine.Clock.defaultFakeTimer.scheduleFunction(timeoutKey, funcToCall, millis, recurring);
-110 },
-111
-112 useMock: function() {
-113 if (!jasmine.Clock.isInstalled()) {
-114 var spec = jasmine.getEnv().currentSpec;
-115 spec.after(jasmine.Clock.uninstallMock);
-116
-117 jasmine.Clock.installMock();
-118 }
-119 },
-120
-121 installMock: function() {
-122 jasmine.Clock.installed = jasmine.Clock.defaultFakeTimer;
-123 },
-124
-125 uninstallMock: function() {
-126 jasmine.Clock.assertInstalled();
-127 jasmine.Clock.installed = jasmine.Clock.real;
-128 },
-129
-130 real: {
-131 setTimeout: jasmine.getGlobal().setTimeout,
-132 clearTimeout: jasmine.getGlobal().clearTimeout,
-133 setInterval: jasmine.getGlobal().setInterval,
-134 clearInterval: jasmine.getGlobal().clearInterval
-135 },
-136
-137 assertInstalled: function() {
-138 if (!jasmine.Clock.isInstalled()) {
-139 throw new Error("Mock clock is not installed, use jasmine.Clock.useMock()");
-140 }
-141 },
-142
-143 isInstalled: function() {
-144 return jasmine.Clock.installed == jasmine.Clock.defaultFakeTimer;
-145 },
-146
-147 installed: null
-148 };
-149 jasmine.Clock.installed = jasmine.Clock.real;
-150
-151 //else for IE support
-152 jasmine.getGlobal().setTimeout = function(funcToCall, millis) {
-153 if (jasmine.Clock.installed.setTimeout.apply) {
-154 return jasmine.Clock.installed.setTimeout.apply(this, arguments);
-155 } else {
-156 return jasmine.Clock.installed.setTimeout(funcToCall, millis);
-157 }
-158 };
-159
-160 jasmine.getGlobal().setInterval = function(funcToCall, millis) {
-161 if (jasmine.Clock.installed.setInterval.apply) {
-162 return jasmine.Clock.installed.setInterval.apply(this, arguments);
-163 } else {
-164 return jasmine.Clock.installed.setInterval(funcToCall, millis);
-165 }
-166 };
-167
-168 jasmine.getGlobal().clearTimeout = function(timeoutKey) {
-169 if (jasmine.Clock.installed.clearTimeout.apply) {
-170 return jasmine.Clock.installed.clearTimeout.apply(this, arguments);
-171 } else {
-172 return jasmine.Clock.installed.clearTimeout(timeoutKey);
-173 }
-174 };
-175
-176 jasmine.getGlobal().clearInterval = function(timeoutKey) {
-177 if (jasmine.Clock.installed.clearTimeout.apply) {
-178 return jasmine.Clock.installed.clearInterval.apply(this, arguments);
-179 } else {
-180 return jasmine.Clock.installed.clearInterval(timeoutKey);
-181 }
-182 };
-183
-184
\ No newline at end of file
diff --git a/doc/symbols/src/src_util.js.html b/doc/symbols/src/src_util.js.html
deleted file mode 100644
index 31f3e27b..00000000
--- a/doc/symbols/src/src_util.js.html
+++ /dev/null
@@ -1,75 +0,0 @@
- 1 /**
- 2 * @namespace
- 3 */
- 4 jasmine.util = {};
- 5
- 6 /**
- 7 * Declare that a child class inherit it's prototype from the parent class.
- 8 *
- 9 * @private
- 10 * @param {Function} childClass
- 11 * @param {Function} parentClass
- 12 */
- 13 jasmine.util.inherit = function(childClass, parentClass) {
- 14 /**
- 15 * @private
- 16 */
- 17 var subclass = function() {
- 18 };
- 19 subclass.prototype = parentClass.prototype;
- 20 childClass.prototype = new subclass;
- 21 };
- 22
- 23 jasmine.util.formatException = function(e) {
- 24 var lineNumber;
- 25 if (e.line) {
- 26 lineNumber = e.line;
- 27 }
- 28 else if (e.lineNumber) {
- 29 lineNumber = e.lineNumber;
- 30 }
- 31
- 32 var file;
- 33
- 34 if (e.sourceURL) {
- 35 file = e.sourceURL;
- 36 }
- 37 else if (e.fileName) {
- 38 file = e.fileName;
- 39 }
- 40
- 41 var message = (e.name && e.message) ? (e.name + ': ' + e.message) : e.toString();
- 42
- 43 if (file && lineNumber) {
- 44 message += ' in ' + file + ' (line ' + lineNumber + ')';
- 45 }
- 46
- 47 return message;
- 48 };
- 49
- 50 jasmine.util.htmlEscape = function(str) {
- 51 if (!str) return str;
- 52 return str.replace(/&/g, '&')
- 53 .replace(/</g, '<')
- 54 .replace(/>/g, '>');
- 55 };
- 56
- 57 jasmine.util.argsToArray = function(args) {
- 58 var arrayOfArgs = [];
- 59 for (var i = 0; i < args.length; i++) arrayOfArgs.push(args[i]);
- 60 return arrayOfArgs;
- 61 };
- 62
- 63 jasmine.util.extend = function(destination, source) {
- 64 for (var property in source) destination[property] = source[property];
- 65 return destination;
- 66 };
- 67
- 68
\ No newline at end of file
diff --git a/pages b/pages
new file mode 160000
index 00000000..29307537
--- /dev/null
+++ b/pages
@@ -0,0 +1 @@
+Subproject commit 29307537f7be93bac7c7dba8f04e36a2dd4db2ce