Created
February 21, 2013 16:58
-
-
Save sbleon/5006206 to your computer and use it in GitHub Desktop.
Intermittent test failure in jquery-lazy-images with Poltergeist
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
1) basic lazy image loading should load the real image only when the user scrolls to it | |
Failure/Error: page.source.should have_selector 'img[src*="placekitten"]' | |
expected following output to contain a <img[src*="placekitten"]/> tag: | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Dummy</title> | |
<link href="/assets/application.css" media="all" rel="stylesheet" type="text/css"> | |
<script src="/assets/application.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<h1>Basic Usage Test</h1> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<p>.</p> | |
<img alt="Grey" class=" lazy" data-original="http://placekitten.com/200/300" height="300" src="/assets/grey.gif" width="200" style="display: inline; "><noscript><img alt="300" height="300" src="http://placekitten.com/200/300" width="200" /></noscript> | |
</body> | |
</html> | |
# ./spec/requests/pages_spec.rb:17:in `block (2 levels) in <top (required)>' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment