Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ghiculescu/02b72bf2826615201db8811a0e04f521 to your computer and use it in GitHub Desktop.
Save ghiculescu/02b72bf2826615201db8811a0e04f521 to your computer and use it in GitHub Desktop.
"data-confirm: clicking on a link with data-confirm attribute. Confirm yes. (0, 6, 6)Rerun\n40 ms\ndata-confirm: clicking on a button with data-confirm attribute. Confirm yes. (0, 6, 6)Rerun\n26 ms\ndata-confirm: clicking on a link with data-confirm attribute. Confirm No. (0, 3, 3)Rerun\n66 ms\ndata-confirm: clicking on a button with data-confirm attribute. Confirm No. (0, 3, 3)Rerun\n70 ms\ndata-confirm: clicking on a button with data-confirm attribute. Confirm error. (0, 3, 3)Rerun\n68 ms\ndata-confirm: clicking on a submit button with form and data-confirm attributes. Confirm No. (0, 3, 3)Rerun\n71 ms\ndata-confirm: binding to confirm event of a link and returning false (0, 1, 1)Rerun\n69 ms\ndata-confirm: binding to confirm event of a button and returning false (0, 1, 1)Rerun\n66 ms\ndata-confirm: binding to confirm:complete event of a link and returning false (0, 2, 2)Rerun\n69 ms\ndata-confirm: binding to confirm:complete event of a button and returning false (0, 2, 2)Rerun\n66 ms\ndata-confirm: a button inside a form only confirms once (0, 1, 1)Rerun\n22 ms\ndata-confirm: clicking on the children of a link should also trigger a confirm (0, 6, 6)Rerun\n21 ms\ndata-confirm: clicking on the children of a disabled button should not trigger a confirm. (1, 0, 1)Rerun\n70 ms\nExpected 1 assertions, but 0 were run\nSource: \n at asyncTest (http://localhost:4567/vendor/qunit.js:108:9)\n at http://localhost:4567/test/data-confirm.js:297:1\ndata-confirm: clicking on a link with data-confirm attribute with custom confirm handler. Confirm yes. (0, 7, 7)Rerun\n28 ms\ndata-remote: ctrl-clicking on a link does not fire ajaxyness (0, 0, 0)Rerun\n30 ms\ndata-remote: right/mouse-wheel-clicking on a link does not fire ajaxyness (0, 0, 0)Rerun\n30 ms\ndata-remote: clicking on a link via a non-mouse Event (such as from js) works (0, 1, 1)Rerun\n33 ms\ndata-remote: ctrl-clicking on a link still fires ajax for non-GET links and for links with \"data-params\" (0, 2, 2)Rerun\n30 ms\ndata-remote: clicking on a link with data-remote attribute (0, 5, 5)Rerun\n23 ms\ndata-remote: clicking on a link with both query string in href and data-params (0, 4, 4)Rerun\n21 ms\ndata-remote: clicking on a link with both query string in href and data-params with POST method (0, 4, 4)Rerun\n26 ms\ndata-remote: clicking on a link with disabled attribute (0, 0, 0)Rerun\n32 ms\ndata-remote: clicking on a button with data-remote attribute (0, 5, 5)Rerun\n24 ms\ndata-remote: right/mouse-wheel-clicking on a button with data-remote attribute does not fire ajaxyness (0, 0, 0)Rerun\n33 ms\ndata-remote: changing a select option with data-remote attribute (0, 5, 5)Rerun\n23 ms\ndata-remote: submitting form with data-remote attribute (0, 4, 4)Rerun\n20 ms\ndata-remote: submitting form with data-remote attribute should include inputs in a fieldset only once (0, 3, 3)Rerun\n24 ms\ndata-remote: submitting form with data-remote attribute submits input with matching [form] attribute (0, 6, 6)Rerun\n23 ms\ndata-remote: submitting form with data-remote attribute by clicking button with matching [form] attribute (0, 5, 5)Rerun\n25 ms\ndata-remote: form's submit bindings in browsers that don't support submit bubbling (2, 2, 4)Rerun\n25 ms\nnothing is called\nform being submitted via ajax\nbinding handler already called\nSource: \n at HTMLFormElement.<anonymous> (http://localhost:4567/test/data-remote.js:307:7)\n at HTMLFormElement.<anonymous> (http://localhost:4567/test/settings.js:114:22)\n at Rails.fire (http://localhost:4567/rails-ujs.js:145:9)\n at Object.beforeSend (http://localhost:4567/rails-ujs.js:594:13)\n at Rails.ajax (http://localhost:4567/rails-ujs.js:202:50)\n at HTMLFormElement.Rails.handleRemote (http://localhost:4567/rails-ujs.js:588:5)\n at HTMLDocument.<anonymous> (http://localhost:4567/rails-ujs.js:163:48)\n at jQuery.fn.init.triggerNative (http://localhost:4567/test/settings.js:97:8)\nExpected 5 assertions, but 3 were run\nSource: \n at asyncTest (http://localhost:4567/vendor/qunit.js:108:9)\n at http://localhost:4567/test/data-remote.js:293:1\n at http://localhost:4567/test/data-remote.js:511:3\ndata-remote: returning false in form's submit bindings in non-submit-bubbling browsers (1, 0, 1)Rerun\n30 ms\nform should not be submitted\nSource: \n at HTMLFormElement.<anonymous> (http://localhost:4567/test/data-remote.js:333:7)\n at HTMLFormElement.<anonymous> (http://localhost:4567/test/settings.js:114:22)\n at Rails.fire (http://localhost:4567/rails-ujs.js:145:9)\n at Object.beforeSend (http://localhost:4567/rails-ujs.js:594:13)\n at Rails.ajax (http://localhost:4567/rails-ujs.js:202:50)\n at HTMLFormElement.Rails.handleRemote (http://localhost:4567/rails-ujs.js:588:5)\n at HTMLDocument.<anonymous> (http://localhost:4567/rails-ujs.js:163:48)\n at jQuery.fn.init.triggerNative (http://localhost:4567/test/settings.js:97:8)\ndata-remote: clicking on a link with falsy \"data-remote\" attribute does not fire ajaxyness (0, 0, 0)Rerun\n40 ms\ndata-remote: ctrl-clicking on a link with falsy \"data-remote\" attribute does not fire ajaxyness even if \"data-params\" present (0, 0, 0)Rerun\n42 ms\ndata-remote: clicking on a button with falsy \"data-remote\" attribute (0, 0, 0)Rerun\n42 ms\ndata-remote: submitting a form with falsy \"data-remote\" attribute (0, 0, 0)Rerun\n39 ms\ndata-remote: changing a select option with falsy \"data-remote\" attribute (0, 0, 0)Rerun\n39 ms\ndata-remote: form should be serialized correctly (0, 6, 6)Rerun\n21 ms\ndata-remote: form buttons should only be serialized when clicked (0, 4, 4)Rerun\n22 ms\ndata-remote: changing a select option without \"data-url\" attribute still fires ajax request to current location (0, 1, 1)Rerun\n39 ms\ndata-remote: inputs inside disabled fieldset are not submitted on remote forms (0, 3, 3)Rerun\n22 ms\ndata-disable: form input field with \"data-disable\" attribute (0, 7, 7)Rerun\n37 ms\ndata-disable: form button with \"data-disable\" attribute (0, 7, 7)Rerun\n38 ms\ndata-disable: form input[type=submit][data-disable] disables (0, 6, 6)Rerun\n67 ms\ndata-disable: form[data-remote] input[type=submit][data-disable] is replaced in ajax callback (0, 2, 2)Rerun\n51 ms\ndata-disable: form[data-remote] input[data-disable] is replaced with disabled field in ajax callback (0, 2, 2)Rerun\n52 ms\ndata-disable: form[data-remote] textarea[data-disable] attribute (0, 3, 3)Rerun\n35 ms\ndata-disable: a[data-disable] disables (0, 5, 5)Rerun\n16 ms\ndata-disable: a[data-remote][data-disable] disables and re-enables (0, 6, 6)Rerun\n39 ms\ndata-disable: a[data-remote][data-disable] re-enables when `ajax:before` event is cancelled (0, 6, 6)Rerun\n51 ms\ndata-disable: a[data-remote][data-disable] re-enables when `ajax:beforeSend` event is cancelled (0, 6, 6)Rerun\n46 ms\ndata-disable: a[data-remote][data-disable] re-enables when `ajax:error` event is triggered (0, 6, 6)Rerun\n51 ms\ndata-disable: form[data-remote] input|button|textarea[data-disable] does not disable when `ajax:beforeSend` event is cancelled (0, 8, 8)Rerun\n17 ms\ndata-disable: ctrl-clicking on a link does not disables the link (0, 6, 6)Rerun\n16 ms\ndata-disable: right/mouse-wheel-clicking on a link does not disable the link (0, 10, 10)Rerun\n14 ms\ndata-disable: button[data-remote][data-disable] disables and re-enables (0, 6, 6)Rerun\n37 ms\ndata-disable: button[data-remote][data-disable] re-enables when `ajax:before` event is cancelled (0, 6, 6)Rerun\n47 ms\ndata-disable: button[data-remote][data-disable] re-enables when `ajax:beforeSend` event is cancelled (0, 6, 6)Rerun\n51 ms\ndata-disable: button[data-remote][data-disable] re-enables when `ajax:error` event is triggered (0, 6, 6)Rerun\n51 ms\ndata-disable: do not enable elements for XHR redirects (0, 6, 6)Rerun\n49 ms\ndata-disable-with: form input field with \"data-disable-with\" attribute (0, 7, 7)Rerun\n35 ms\ndata-disable-with: blank form input field with \"data-disable-with\" attribute (0, 7, 7)Rerun\n36 ms\ndata-disable-with: form button with \"data-disable-with\" attribute (0, 6, 6)Rerun\n35 ms\ndata-disable-with: a[data-remote][data-disable-with] within a form disables and re-enables (0, 6, 6)Rerun\n42 ms\ndata-disable-with: form input[type=submit][data-disable-with] disables (0, 6, 6)Rerun\n66 ms\ndata-disable-with: form input[type=submit][data-disable-with] re-enables when `pageshow` event is triggered (0, 6, 6)Rerun\n2 ms\ndata-disable-with: form[data-remote] input[type=submit][data-disable-with] is replaced in ajax callback (0, 2, 2)Rerun\n53 ms\ndata-disable-with: form[data-remote] input[data-disable-with] is replaced with disabled field in ajax callback (0, 2, 2)Rerun\n55 ms\ndata-disable-with: form input[type=submit][data-disable-with] using \"form\" attribute disables (0, 6, 6)Rerun\n68 ms\ndata-disable-with: form[data-remote] textarea[data-disable-with] attribute (0, 3, 3)Rerun\n35 ms\ndata-disable-with: a[data-disable-with] disables (0, 4, 4)Rerun\n16 ms\ndata-disable-with: a[data-disable-with] re-enables when `pageshow` event is triggered (0, 6, 6)Rerun\n2 ms\ndata-disable-with: a[data-remote][data-disable-with] disables and re-enables (0, 6, 6)Rerun\n41 ms\ndata-disable-with: a[data-remote][data-disable-with] re-enables when `ajax:before` event is cancelled (0, 6, 6)Rerun\n48 ms\ndata-disable-with: a[data-remote][data-disable-with] re-enables when `ajax:beforeSend` event is cancelled (0, 6, 6)Rerun\n49 ms\ndata-disable-with: a[data-remote][data-disable-with] re-enables when `ajax:error` event is triggered (0, 6, 6)Rerun\n50 ms\ndata-disable-with: form[data-remote] input|button|textarea[data-disable-with] does not disable when `ajax:beforeSend` event is cancelled (0, 8, 8)Rerun\n16 ms\ndata-disable-with: ctrl-clicking on a link does not disable the link (0, 6, 6)Rerun\n14 ms\ndata-disable-with: right/mouse-wheel-clicking on a link does not disable the link (0, 10, 10)Rerun\n14 ms\ndata-disable-with: button[data-remote][data-disable-with] disables and re-enables (0, 6, 6)Rerun\n41 ms\ndata-disable-with: button[data-remote][data-disable-with] re-enables when `ajax:before` event is cancelled (0, 6, 6)Rerun\n50 ms\ndata-disable-with: button[data-remote][data-disable-with] re-enables when `ajax:beforeSend` event is cancelled (0, 6, 6)Rerun\n49 ms\ndata-disable-with: button[data-remote][data-disable-with] re-enables when `ajax:error` event is triggered (0, 6, 6)Rerun\n50 ms\ncall-remote: form method is read from \"method\" and not from \"data-method\" (0, 1, 1)Rerun\n20 ms\ncall-remote: form method is not read from \"data-method\" attribute in case of missing \"method\" (0, 1, 1)Rerun\n20 ms\ncall-remote: form method is read from submit button \"formmethod\" if submit is triggered by that button (0, 1, 1)Rerun\n24 ms\ncall-remote: form default method is GET (0, 1, 1)Rerun\n21 ms\ncall-remote: form URL is picked up from \"action\" (0, 1, 1)Rerun\n22 ms\ncall-remote: form URL is read from \"action\" not \"href\" (0, 1, 1)Rerun\n22 ms\ncall-remote: form URL is read from submit button \"formaction\" if submit is triggered by that button (0, 1, 1)Rerun\n21 ms\ncall-remote: prefer JS, but accept any format (0, 1, 1)Rerun\n21 ms\ncall-remote: JS code should be executed (0, 1, 1)Rerun\n22 ms\ncall-remote: ecmascript code should be executed (0, 1, 1)Rerun\n20 ms\ncall-remote: execution of JS code does not modify current DOM (0, 1, 1)Rerun\n22 ms\ncall-remote: HTML document should be parsed (0, 1, 1)Rerun\n22 ms\ncall-remote: XML document should be parsed (0, 1, 1)Rerun\n21 ms\ncall-remote: accept application/json if \"data-type\" is json (0, 1, 1)Rerun\n21 ms\ncall-remote: allow empty \"data-remote\" attribute (0, 1, 1)Rerun\n22 ms\ncall-remote: query string in form action should be stripped in a GET request in normal submit (0, 1, 1)Rerun\n36 ms\ncall-remote: query string in form action should be stripped in a GET request in ajax submit (0, 1, 1)Rerun\n21 ms\ncall-remote: query string in form action should not be stripped in a POST request in normal submit (0, 1, 1)Rerun\n33 ms\ncall-remote: query string in form action should not be stripped in a POST request in ajax submit (0, 1, 1)Rerun\n20 ms\ncall-remote: allow empty form \"action\" (0, 1, 1)Rerun\n32 ms\ncall-remote: sends CSRF token in custom header (0, 1, 1)Rerun\n22 ms\ncall-remote: intelligently guesses crossDomain behavior when target URL has a different protocol and/or hostname (0, 1, 1)Rerun\n30 ms\ncall-remote: intelligently guesses crossDomain behavior when target URL consists of only a path (0, 1, 1)Rerun\n28 ms\ncall-remote-callbacks: modifying form fields with \"ajax:before\" sends modified data in request (0, 3, 3)Rerun\n32 ms\ncall-remote-callbacks: modifying data(\"type\") with \"ajax:before\" requests new dataType in request (0, 1, 1)Rerun\n31 ms\ncall-remote-callbacks: setting data(\"with-credentials\",true) with \"ajax:before\" uses new setting in request (0, 1, 1)Rerun\n29 ms\ncall-remote-callbacks: stopping the \"ajax:beforeSend\" event aborts the request (0, 1, 1)Rerun\n28 ms\ncall-remote-callbacks: \"ajax:beforeSend\" can be observed and stopped with event delegation (0, 1, 1)Rerun\n31 ms\ncall-remote-callbacks: \"ajax:beforeSend\", \"ajax:send\", \"ajax:success\" and \"ajax:complete\" are triggered (0, 8, 8)Rerun\n32 ms\ncall-remote-callbacks: \"ajax:beforeSend\", \"ajax:send\", \"ajax:error\" and \"ajax:complete\" are triggered on error (0, 8, 8)Rerun\n29 ms\ncall-remote-callbacks: binding to ajax callbacks via .delegate() triggers handlers properly (0, 4, 4)Rerun\n33 ms\ndata-method: link with \"data-method\" set to \"delete\" (0, 3, 3)Rerun\n36 ms\ndata-method: click on the child of link with \"data-method\" (0, 3, 3)Rerun\n36 ms\ndata-method: link with \"data-method\" and CSRF (0, 1, 1)Rerun\n34 ms\ndata-method: link \"target\" should be carried over to generated form (0, 1, 1)Rerun\n32 ms\ndata-method: link with \"data-method\" and cross origin (0, 1, 1)Rerun\n16 ms\noverride: the getter for an element's href is publicly accessible (0, 1, 1)Rerun\n17 ms\noverride: the getter for an element's href is overridable (0, 1, 1)Rerun\n16 ms\noverride: the getter for an element's href works normally if not overridden (0, 1, 1)Rerun\n16 ms\noverride: the event selector strings are overridable (0, 1, 1)Rerun\n14 ms\noverride: including rails-ujs multiple times throws error (0, 1, 1)Rerun\n68 ms\ncsrf-refresh: refresh all csrf tokens (0, 1, 1)Rerun\n14 ms\ncsrf-token: find csrf token (0, 1, 1)Rerun\n16 ms\ncsrf-token: find csrf param (0, 1, 1)Rerun\n15 ms\ncall-ajax: call ajax without \"ajax:beforeSend\" (0, 1, 1)Rerun\n69 ms"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment