Sha256: f3b5b6af804e750113e760c8bc0a5f1e2d893c321b83c3b8db59ef044e317313
Contents?: true
Size: 1.69 KB
Versions: 17
Compression:
Stored size: 1.69 KB
Contents
<script> up.dom.config.fallbacks = []; </script> <div class="example"> <h2>Link to unexpected response</h2> <p> <a href="/error_test/unexpected_response" up-target=".link-target" up-fail-target=".link-target">Link</a> </p> <p> <a href="/error_test/unexpected_response?foo=bar" up-target=".link-target" up-fail-target=".link-target">Link with query params</a> </p> <div class="area link-target"> .link-target </div> </div> <div class="example"> <h2>Form to unexpected response</h2> <%= form_tag "/error_test/unexpected_response", 'up-target' => '.form-target', 'up-fail-target' => '.form-target' do %> <p> <input type="text" name="param" value="param-value"> </p> <p> <button type="submit">Submit</button> </p> <% end %> <div class="area form-target"> .form-target </div> </div> <script> if (false) { var html = '<!DOCTYPE html>\ <html>\ <head>\ <title>Integration test - Unpoly</title>\ <link rel="stylesheet" media="all" href="/assets/integration_test-6697c9a85c007956bf460adc74ba46bc.css" />\ <meta name="csrf-param" content="authenticity_token" />\ <meta name="csrf-token" content="CYCqVYIr0wbjErWnupydWZiO8WMqRn+z4BlHN4g4o3T3UN4hW2sDfQXFT3/ygZt41m0jo/YEl6syohm8b8DsYw==" />\ </head>\ <body>\ <div class="page">\ <div class="unexpected-response">\ unexpected response\ </div>\ \ </div>\ </body>\ </html>'; var selector = '.linx-target'; up.fail(['Could not find selector %s in response %s', selector, html], { inspect: { label: 'Open response', callback: function () { alert("callback") } } }); } </script>
Version data entries
17 entries across 17 versions & 1 rubygems