first commit

This commit is contained in:
2024-04-19 14:04:41 +07:00
commit 014283036f
7282 changed files with 1324127 additions and 0 deletions

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
{
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": true,
"unused": true,
"boss": true,
"eqnull": true,
"browser": true,
"node": true,
"predef": [
"jQuery",
"QUnit",
"module",
"test",
"asyncTest",
"expect",
"start",
"stop",
"ok",
"equal",
"notEqual",
"deepEqual",
"notDeepEqual",
"strictEqual",
"notStrictEqual",
"throws"
]
}
+27
View File
@@ -0,0 +1,27 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>JQuery lightSlider Test Suite</title>
<!-- Load local jQuery. -->
<script src="../bower_components/jquery/jquery.js"></script>
<!-- Load local QUnit. -->
<link rel="stylesheet" href="../bower_components/qunit/qunit/qunit.css" media="screen">
<script src="../bower_components/qunit/qunit/qunit.js"></script>
<!-- Load local lib and tests. -->
<script src="../src/js/lightslider.js"></script>
<script src="lightslider_test.js"></script>
<!-- Removing access to jQuery and $. But it'll still be available as _$, if
you REALLY want to mess around with jQuery in the console. REMEMBER WE
ARE TESTING A PLUGIN HERE, THIS HELPS ENSURE BEST PRACTICES. REALLY. -->
<script>window._$ = jQuery.noConflict(true);</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
<span>lame test markup</span>
<span>normal test markup</span>
<span>awesome test markup</span>
</div>
</body>
</html>
@@ -0,0 +1,6 @@
(function($) {
test("chainable", function() {
ok($("#qunit-fixture").lightSlider().addClass("chainable"), "can be chained");
equal($("#qunit-fixture").hasClass("chainable"), true, "class was added correctly from chaining");
});
}(jQuery));