Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tests for the latest version of jQuery (currently 1.7.1). #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.markdown
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ tested with, what browsers it has been tested in, and where the unit tests
reside (so you can test it yourself).

### jQuery Versions ###
1.3.2, 1.4.1, 1.4.2
1.3.2, 1.4.1, 1.4.2, 1.7.1

### Browsers Tested ###
Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.1.
Internet Explorer 6-8, Firefox 2-10, Safari 3-4, Chrome, Opera 9.6-10.1.

### Unit Tests ###
[http://benalman.com/code/projects/jquery-resize/unit/](http://benalman.com/code/projects/jquery-resize/unit/)
Expand Down
74 changes: 46 additions & 28 deletions unit/index.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>jQuery resize event - Unit Tests</title>
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen">
<script type="text/javascript" src="../shared/qunit.js"></script>
# jQuery resize event #
[http://benalman.com/projects/jquery-resize-plugin/](http://benalman.com/projects/jquery-resize-plugin/)

Version: 1.1, Last updated: 3/14/2010

With jQuery resize event, you can bind resize event handlers to elements other than window, for super-awesome-resizing-greatness!

Note that while this plugin works in jQuery 1.3.2, if an element's event callbacks are manually triggered via .trigger( 'resize' ) or .resize() those callbacks may double-fire, due to limitations in the jQuery 1.3.2 special events system. This is not an issue when using jQuery 1.4+.

<script type="text/javascript" src="../shared/jquery-1.4.2.js"></script>

<script type="text/javascript" src="../jquery.ba-resize.js"></script>
<script type="text/javascript" src="unit.js"></script>
</head>
<body>
<div id="qunit-header">
<h1>jQuery resize event - Unit Tests</h1>
<small><a href="http://benalman.com/projects/jquery-resize-plugin/">Project Home</a></small>
<div style="clear:both"></div>
</div>
<h2 id="qunit-banner"><span></span></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<p>
These unit tests include jQuery <span id="jq_version">...</span>. To view the unit tests using
jQuery 1.4.1, <a href="./jquery-1.4.1.html">click here</a>, and to view the unit tests using
jQuery 1.3.2, <a href="./jquery-1.3.2.html">click here</a>.
</p>
<ol id="qunit-tests"></ol>
</body>
</html>
Visit the [project page](http://benalman.com/projects/jquery-resize-plugin/) for more information and usage examples!


## Documentation ##
[http://benalman.com/code/projects/jquery-resize/docs/](http://benalman.com/code/projects/jquery-resize/docs/)


## Examples ##
This working example, complete with fully commented code, illustrates a few
ways in which this plugin can be used.

[http://benalman.com/code/projects/jquery-resize/examples/resize/](http://benalman.com/code/projects/jquery-resize/examples/resize/)

## Support and Testing ##
Information about what version or versions of jQuery this plugin has been
tested with, what browsers it has been tested in, and where the unit tests
reside (so you can test it yourself).

### jQuery Versions ###
1.3.2, 1.4.1, 1.4.2, 1.7.1

### Browsers Tested ###
Internet Explorer 6-8, Firefox 2-10, Safari 3-4, Chrome, Opera 9.6-10.1.

### Unit Tests ###
[http://benalman.com/code/projects/jquery-resize/unit/](http://benalman.com/code/projects/jquery-resize/unit/)


## Release History ##

1.1 - (3/14/2010) Fixed a minor bug that was causing the event to trigger immediately after bind in some circumstances. Also changed $.fn.data to $.data to improve performance.
1.0 - (2/10/2010) Initial release


## License ##
Copyright (c) 2010 "Cowboy" Ben Alman
Dual licensed under the MIT and GPL licenses.
[http://benalman.com/about/license/](http://benalman.com/about/license/)
29 changes: 29 additions & 0 deletions unit/jquery-1.4.2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<title>jQuery resize event - Unit Tests</title>
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen">
<script type="text/javascript" src="../shared/qunit.js"></script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script type="text/javascript" src="../jquery.ba-resize.js"></script>
<script type="text/javascript" src="unit.js"></script>
</head>
<body>
<div id="qunit-header">
<h1>jQuery resize event - Unit Tests</h1>
<small><a href="http://benalman.com/projects/jquery-resize-plugin/">Project Home</a></small>
<div style="clear:both"></div>
</div>
<h2 id="qunit-banner"><span></span></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<p>
These unit tests include jQuery <span id="jq_version">...</span>. To view the unit tests using
jQuery 1.4.1, <a href="./jquery-1.4.1.html">click here</a>, and to view the unit tests using
jQuery 1.3.2, <a href="./jquery-1.3.2.html">click here</a>.
</p>
<ol id="qunit-tests"></ol>
</body>
</html>