BVB Source Codes

web-design-standards Show toggle-field-mask.spec.js Source code

Return Download web-design-standards: download toggle-field-mask.spec.js Source code - Download web-design-standards Source code - Type:.js
  1. var $ = require('jquery');
  2. var should = require('should');
  3.  
  4. var ToggleFieldMask = require('../../../src/js/components/toggle-field-mask');
  5.  
  6. var $text = $('<input type="text" autocapitalize="on" autocorrect="on">');
  7. var $password = $('<input type="password" autocapitalize="on" autocorrect="on">');
  8.  
  9. describe('ToggleFieldMask', function () {
  10.   it('switches the type of an input from text to password when true', function () {
  11.     ToggleFieldMask($text.get(), true);
  12.     $text.attr('type').should.equal('password');
  13.   });
  14.  
  15.   it('switches the type of an input from password to text when false', function () {
  16.     ToggleFieldMask($password.get(), false);
  17.     $password.attr('type').should.equal('text');
  18.   });
  19. });
  20.  
  21.  
downloadtoggle-field-mask.spec.js Source code - Download web-design-standards Source code
Related Source Codes/Software:
KineticJS - KineticJS is an HTML5 Canvas JavaScript framework ... 2017-01-07
yui3 - A library for building richly interactive web appl... 2017-01-07
TextBlob - Simple, Pythonic, text processing--Sentiment analy... 2017-01-07
monaco-editor - A browser based code editor 2017-01-07
grumpy - Grumpy is a Python to Go source code transcompiler... 2017-01-07
Knuff - The debug application for Apple Push Notification ... 2017-01-07
RoundedImageView - A fast ImageView that supports rounded corners, ov... 2017-01-07
flowchart.js - Draws simple SVG flow chart diagrams from textual ... 2017-01-08
TextFieldEffects - Custom UITextFields effects inspired by Codrops, b... 2017-01-08
glide - Package Management for Golang h... 2017-01-08
discover-flask - Full Stack Web Development with Flask. ... 2017-01-12
spring-mvc-showcase - Demonstrates the features of the Spring MVC web fr... 2017-01-12
tushare - TuShare is a utility for crawling historical data ... 2017-01-12
raml-spec - RAML Specification http://raml.... 2017-01-12
android-stackblur - Android StackBlur is a library that can perform a ... 2017-01-12
sound-redux - A Soundcloud client built with React / Redux ... 2017-01-12
httpstat - curl statistics made simple 2017-01-12
vim - Vim configuration file and plug-ins 2017-01-12
appframework - The definitive HTML5 mobile javascript framework ... 2017-01-12
BaiduExporter - Assistant for Baidu to export download links to ar... 2017-01-11

 Back to top