Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Rng.io to run all tests regardless of failures of previous rings. Closes
Browse files Browse the repository at this point in the history
 gh-51
  • Loading branch information
rwaldron committed Feb 23, 2013
1 parent 36d2412 commit aadcc35
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 57 deletions.
4 changes: 2 additions & 2 deletions dev/load.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 47 additions & 20 deletions dist/application.js
Expand Up @@ -13145,6 +13145,9 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
return pairs;
}());

// Force all rings to run, all the time.
Params.all = true;

Rng = {

// node and templates point at the closed over
Expand Down Expand Up @@ -13353,7 +13356,10 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {

// Change DOM text from saying "running..." to "tests complete"
// when the runner is complete
var completed = 0;
var completed, isPosted;

completed = 0;
isPosted = false;

Hat.on("runner:done", function( data ) {
var override;
Expand Down Expand Up @@ -13386,12 +13392,23 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
// These will be used by the App Types feature
Rng.Store.set( "results", storage );


// If an additional output parameter was provided,
// call Rng.dump() to prepare and output results in
// ?output
// If the ?output parameter was used,
// call Rng.output() to prepare and output results in
// requested format
if ( Rng.params.output ) {
Rng.dump();
Rng.output();
}

// ?post=endpoint
// If the ?post parameter was used,
// serialized the results and post to top-most window
if ( Rng.params.post && !isPosted ) {
isPosted = true;

console.log( "Post: Results posted to provided endpoint" );

Rng.post( storage );
}
}
}
Expand Down Expand Up @@ -13433,7 +13450,7 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
}
},

dump: function() {
output: function() {
var data, prepare, finalized, prefix, type, encodetype, records;

// Localize the output type
Expand Down Expand Up @@ -13541,9 +13558,33 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
// test results with correct header
window.location.href = prefix + finalized;
},
// post the results to provided endpoint
post: function( data ) {
var xhr = new window.XMLHttpRequest();

xhr.onreadystatechange = function() {
if ( xhr.readyState === 4 ) {
console.log( "Post Results Complete" );
}
};

if ( typeof Rng.params.post !== "string" ) {
Rng.params.post = "/";
}


xhr.open( "POST", Rng.params.post, true );
xhr.send(
JSON.stringify( data, function( key, val ) {
// Removed the rendered HTML key/vals
if ( key === "rendered" || key === "assertion" ) {
return undefined;
}
return val;
})
);
},

regenerate: function() {
var browserscope, process;

Expand Down Expand Up @@ -13636,22 +13677,8 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
//
process();
}

// console.log( Rng.Store.get("browserscope"), Rng.params.device );


// if browserscope data exists, regenerate immediately
//


//


},




// Cache register (get it??)
register: function( key, array ) {
new Rng.Cache( key, array );
Expand Down
6 changes: 3 additions & 3 deletions dist/application.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/h.js
@@ -1,5 +1,5 @@
/*! Ringmark - v1.4.0 - 10/31/2012
* Copyright ( c ) 2012 Facebook Licensed W3C 3-clause BSD License, W3C Test Suite License */
/*! Ringmark - v1.4.0 - 2/23/2013
* Copyright ( c ) 2013 Facebook Licensed W3C 3-clause BSD License, W3C Test Suite License */

(function( exports ) {

Expand Down
4 changes: 2 additions & 2 deletions dist/h.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/performance.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/ringmark.js
Expand Up @@ -1820,8 +1820,8 @@ QUnit.diff = (function() {

}( this ));

/*! Ringmark - v1.4.0 - 10/31/2012
* Copyright ( c ) 2012 Facebook Licensed W3C 3-clause BSD License, W3C Test Suite License */
/*! Ringmark - v1.4.0 - 2/23/2013
* Copyright ( c ) 2013 Facebook Licensed W3C 3-clause BSD License, W3C Test Suite License */

(function( exports ) {

Expand Down
4 changes: 2 additions & 2 deletions dist/ringmark.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/rings.min.js

Large diffs are not rendered by default.

0 comments on commit aadcc35

Please sign in to comment.