pixelhandler

Pushin' & pullin' pixels on the net

QUnit Tests for .searchText() Search Form Helper Plugin

The purpose of this code is to test the behavior of the .searchText() jQuery plugin. Source Code | Demo and QUnit tests

Each test will get values at different stages of user interaction with text input field.

  1. simulate user entering text within input field
  2. simulate user leaving input field
  3. simulate user re-entering input

Tests:

  1. Search form value empty prior to using searchText plugin
  2. searchText jQuery Plugin With No Parameters
  3. searchText jQuery Plugin With helperText Parameter
  4. searchText jQuery Plugin With forceReset Parameter
QUnit is a lean testing framework used by the contributors to the jQuery JavaScript library.

Comments