http://www.unheap.com http://plugins.jquery.com http://www.jsdb.io http://microjs.com http://www.jqueryrain.com Do I missing something? Yes, for sure!. Please send me your links to: developer@leolanese.com
KARMA configuration (Testacular)
What is KARMA Karma is a Test Driver. We still needs Jasmine and also node.js, gut and Xcode if we have an Apple product Test the installation node -v git –version Download node.js src code Install node.js Install Xcode InstallRead more…
You may not be ready for this yet, but your kids are gonna love it
The number of devices connected to the web is out of control. Sometimes companies don’t get the real view of the problem: Everything is “connected” or it will be. Everyone gets connected and If you don’t have your website enabledRead more…
Testing the CSS: getComputedStyle
I’m planning to get external fixtures more than inline fixtures, and test it using the getComputedStyle CSS properties values. Can I use: getComputedStyle getComputedStyle capability test TO TEST DEMO http://jsfiddle.net/leolanese/xf6Jm/ Real Responsive Web Design example using getPropertyValue() function getPropertyValue Example:Read more…
SpainJS Conference – JULY 5-6, 2013 MADRID
A SUMMER JAVASCRIPT CONFERENCE Speakers: – Douglas Crockford, Senior JavaScript Architect, www.crockford.com – Leo Lanese, @leolaneseltd, www.leolanese.com – Giorgo Sardo @gisardo, Director in the Technical Evangelism & Development group at Microsoft Corp, http://blogs.msdn.com/b/giorgio/ – Axel Rauschmayer @rauschma, Specialized in JavaScriptRead more…
The way of the Front-end developer: My tiny story
The Front-end development: I used to be a back-end developer working with Java and PHP last 10 years (I still remember that boring purple color from PHP website), :P. I was looking for something else, something to get exited to do.Read more…
JavaScript Unit Tests: testing built-in jasmine.Matchers
Jasmine is a testing framework for JavaScript. It’s framework agnostic and does not require a DOM. There are few matchers we built-in matchers helping us. Get a full control of them is essential to understand the basic functionality.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
describe('Testing all Jasmine built-in matchers', function() { it("equal to", function(){ expect(t).toEqual(t); }); it("toBe", function(){ expect(n).toBe(n); }); it("not.toBe", function(){ expect(t).not.toBe(Array); }); it("not.toContain", function(){ expect(a).not.toContain('Pepe'); }); it("not match to", function(){ expect(t).not.toMatch(f); }); it("is defined", function () { expect(n).toBeDefined(); }) it("is not defined", function () { var n; expect(n).toBeUndefined(); }); it("is null", function () { expect(nul).toBeNull(); }); it("is true", function () { expect(t).toBeTruthy(); }); it("is false", function () { expect(f).toBeFalsy(); }); it("contain an element", function () { expect(a).toContain('leo'); }); it("is lower than", function () { expect(f).toBeLessThan(t); }); it("is higher than", function () { expect(t).toBeGreaterThan(f); }); it("throws exception", function () { expect(function(){fn();}).toThrow(); }); }); |
Automatic testing Leo’s Fibonacci number using Jasmine
Leo’s Fibonacci: The Fibonacci sequence first appears in the book Liber Abaci (1202) by Leonardo of Pisa, Leonardo Pisano Bigollo, Leonardo of Pisa, Leonardo Bonacci, Leonardo Fibonacci or more know as Fibonacci. DEMO: http://leolanese.com/TDD/JsTestDriver/SpecRunner.Fibonacci.html The rabbit question: Rabbits are able to mateRead more…