- Notifications
You must be signed in to change notification settings - Fork6.7k
Lab Week 4#4249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
TheUnknown-31996 wants to merge1 commit intoironhack-labs:masterChoose a base branch fromTheUnknown-31996:master
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Lab Week 4#4249
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1,184 changes: 592 additions & 592 deletionsREADME.md
Large diffs are not rendered by default.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
44 changes: 22 additions & 22 deletionsSpecRunner.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,22 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <title>Jasmine Spec Runner v2.8.0</title> | ||
| <link rel="shortcut icon" type="image/png" href="jasmine/jasmine-2.8.0/jasmine_favicon.png" /> | ||
| <link rel="stylesheet" href="jasmine/jasmine-2.8.0/jasmine.css" /> | ||
| <script src="jasmine/jasmine-2.8.0/jasmine.js"></script> | ||
| <script src="jasmine/jasmine-2.8.0/jasmine-html.js"></script> | ||
| <script src="jasmine/jasmine-2.8.0/boot.js"></script> | ||
| <!-- include source files here... --> | ||
| <script src="src/functions-and-arrays.js"></script> | ||
| <!-- include spec files here... --> | ||
| <script src="tests/functions-and-arrays.spec.js"></script> | ||
| </head> | ||
| <body></body> | ||
| </html> |
266 changes: 133 additions & 133 deletionsjasmine/jasmine-2.8.0/boot.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,133 +1,133 @@ | ||
| /** | ||
| Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js` and `jasmine_html.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project. | ||
| If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms. | ||
| The location of `boot.js` can be specified and/or overridden in `jasmine.yml`. | ||
| [jasmine-gem]: http://github.com/pivotal/jasmine-gem | ||
| */ | ||
| (function() { | ||
| /** | ||
| * ## Require & Instantiate | ||
| * | ||
| * Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference. | ||
| */ | ||
| window.jasmine = jasmineRequire.core(jasmineRequire); | ||
| /** | ||
| * Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference. | ||
| */ | ||
| jasmineRequire.html(jasmine); | ||
| /** | ||
| * Create the Jasmine environment. This is used to run all specs in a project. | ||
| */ | ||
| var env = jasmine.getEnv(); | ||
| /** | ||
| * ## The Global Interface | ||
| * | ||
| * Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged. | ||
| */ | ||
| var jasmineInterface = jasmineRequire.interface(jasmine, env); | ||
| /** | ||
| * Add all of the Jasmine global/public interface to the global scope, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`. | ||
| */ | ||
| extend(window, jasmineInterface); | ||
| /** | ||
| * ## Runner Parameters | ||
| * | ||
| * More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface. | ||
| */ | ||
| var queryString = new jasmine.QueryString({ | ||
| getWindowLocation: function() { return window.location; } | ||
| }); | ||
| var filterSpecs = !!queryString.getParam("spec"); | ||
| var catchingExceptions = queryString.getParam("catch"); | ||
| env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions); | ||
| var throwingExpectationFailures = queryString.getParam("throwFailures"); | ||
| env.throwOnExpectationFailure(throwingExpectationFailures); | ||
| var random = queryString.getParam("random"); | ||
| env.randomizeTests(random); | ||
| var seed = queryString.getParam("seed"); | ||
| if (seed) { | ||
| env.seed(seed); | ||
| } | ||
| /** | ||
| * ## Reporters | ||
| * The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any). | ||
| */ | ||
| var htmlReporter = new jasmine.HtmlReporter({ | ||
| env: env, | ||
| onRaiseExceptionsClick: function() { queryString.navigateWithNewParam("catch", !env.catchingExceptions()); }, | ||
| onThrowExpectationsClick: function() { queryString.navigateWithNewParam("throwFailures", !env.throwingExpectationFailures()); }, | ||
| onRandomClick: function() { queryString.navigateWithNewParam("random", !env.randomTests()); }, | ||
| addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); }, | ||
| getContainer: function() { return document.body; }, | ||
| createElement: function() { return document.createElement.apply(document, arguments); }, | ||
| createTextNode: function() { return document.createTextNode.apply(document, arguments); }, | ||
| timer: new jasmine.Timer(), | ||
| filterSpecs: filterSpecs | ||
| }); | ||
| /** | ||
| * The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results from JavaScript. | ||
| */ | ||
| env.addReporter(jasmineInterface.jsApiReporter); | ||
| env.addReporter(htmlReporter); | ||
| /** | ||
| * Filter which specs will be run by matching the start of the full name against the `spec` query param. | ||
| */ | ||
| var specFilter = new jasmine.HtmlSpecFilter({ | ||
| filterString: function() { return queryString.getParam("spec"); } | ||
| }); | ||
| env.specFilter = function(spec) { | ||
| return specFilter.matches(spec.getFullName()); | ||
| }; | ||
| /** | ||
| * Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack. | ||
| */ | ||
| window.setTimeout = window.setTimeout; | ||
| window.setInterval = window.setInterval; | ||
| window.clearTimeout = window.clearTimeout; | ||
| window.clearInterval = window.clearInterval; | ||
| /** | ||
| * ## Execution | ||
| * | ||
| * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded. | ||
| */ | ||
| var currentWindowOnload = window.onload; | ||
| window.onload = function() { | ||
| if (currentWindowOnload) { | ||
| currentWindowOnload(); | ||
| } | ||
| htmlReporter.initialize(); | ||
| env.execute(); | ||
| }; | ||
| /** | ||
| * Helper function for readability above. | ||
| */ | ||
| function extend(destination, source) { | ||
| for (var property in source) destination[property] = source[property]; | ||
| return destination; | ||
| } | ||
| }()); |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.