반응형
반응형

QUnit: A JavaScript Unit Testing framework.

 

QUnit을 이용한 Javascript 단위테스트http://www.nextree.co.kr/p2256/ 

 

What is QUnit?

QUnit is a powerful, easy-to-use JavaScript unit testing framework. It's used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code, including itself!

Getting Started

A minimal QUnit test setup:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit Example</title>
<link rel="stylesheet" href="//code.jquery.com/qunit/qunit-1.15.0.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="//code.jquery.com/qunit/qunit-1.15.0.js"></script>
<script src="tests.js"></script>
</body>
</html>

The contents of tests.js:

1
2
3
QUnit.test( "hello test", function( assert ) {
assert.ok( 1 == "1", "Passed!" );
});

The result:

Browser Support

QUnit supports the same browsers as jQuery 1.x.

That's IE6+ and Current - 1 for Chrome, Firefox, Safari and Opera.

 ======================================================================

 

jQuery Mockjax: Ajax request mocking

http://github.com/appendto/jquery-mockjax/

jQuery Mockjax provides request/response mocking for ajax requests with jQuery and provides all standard behaviors in the request/response flow.

You may report any issues you may find in the github issue tracking.

jQuery Version Support

The current version of Mockjax has been tested with jQuery 1.3.2 through 2.0.0 with QUnit unit tests, residing in /test.

Browsers Tested

Internet Explorer 6-9, Firefox 3.6 and stable, Safari 5.x, Chrome stable, Opera 9.6-latest.

 

 

반응형
반응형

Duo.js: A next-gen front-end package manager

Duo.js is a next generation package manager for the front end that blends ideas from Component, Browserify, and Go. It makes writing and organizing front-end code fast and pain-free.

duo.js

 

 

A next-generation package manager for the front-end 

 

Duo is a next-generation package manager that blends the best ideas from Component, Browserify andGo to make organizing and writing front-end code quick and painless.

Features

  1. has first-class support for Javascript, HTML and CSS
  2. exposes a unix-y command line interface
  3. pulls source directly from GitHub with semantic versioning
  4. supports source transforms, like Coffeescript or Sass
  5. does not require a manifest

 

 

 

 

 

 

반응형
반응형

Chart & javascript - C3.js: A D3 reusable chart library

C3.js is a D3-based reusable chart library that doesn’t require you to write any actual D3 code. It’s fully controllable and easy to customize, too.

c3

 

 

c3 Build Status

c3 is a D3-based reusable chart library that enables deeper integration of charts into web applications.

More information is here: http://c3js.org

Tutorial and Examples

Another samples are included in this repository:

And you can run these samples as:

$ cd c3/htdocs
$ python -m SimpleHTTPServer 8080

Forum

Now you can ask anything in this forum:

Playground

Please fork this fiddle:

 

 

반응형
반응형

S Gallery: Responsive jQuery gallery plugin

S Gallery is a responsive jQuery gallery plugin that includes CSS3 animations inspired by Sony’s products gallery. It supports touch/swipe functions, too.

s gallery

 

Licensed under Creative Commons Attribution Non-Commercial (CC BY-NC 4.0)

 

 

반응형
반응형

Blast.js: Make text manipulable

Blast.js makes it easy to separate your text to make it manipulable, with four delimiters built-in: character, word, sentence, and element. The elements generated can be accessed via JavaScript or CSS.

blast.js


Blast (1.1.1)

Docs
http://julian.com/research/blast

Quickstart

npm install blast-text
bower install blast-text

Frameworks
Both jQuery and Zepto are fully supported.

Browsers
All major browsers are supported. Back to IE6.





반응형
반응형

Eloquent JavaScript: A modern programming introduction

Eloquent JavaScript, now in its second edition, is a free ebook that offers up a modern introduction to JavaScript programming. It covers everything from program structure to regular expressions to Node.js, and everything in between.

eloquent javascript

반응형

+ Recent posts