Skip to content

Instantly share code, notes, and snippets.

@joshuacronemeyer
Created April 18, 2010 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuacronemeyer/370172 to your computer and use it in GitHub Desktop.
Save joshuacronemeyer/370172 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Graphics | JavaScript Testing Results</title>
<link rel="stylesheet" href="screw.css" type="text/css" charset="utf-8" />
<script type="text/javascript" src="../../../vendor/plugins/blue-ridge/lib/blue-ridge.js"></script>
</head>
<body>
<!-- Put any HTML fixture elements here. -->
<div id="stuff"></div>
<script>
$(document).ready(function () {
$("#stuff").text("this page is ready");
}
);
</script>
</body>
</html>
require("spec_helper.js");
Screw.Unit(function(){
describe("Graphics", function(){
it("does something", function(){
expect($("#stuff").text()).to(equal, "this page is ready");
});
});
});
@joshuacronemeyer
Copy link
Author

Hmm. Ok. So this doesn't reproduce my issue precisely because switching to jquery 1.3.2 doesn't make this test pass... but am i missing something? shouldn't this test pass using rhino since it passes in the browser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment