Anyuka helyén marad!

Utolsó kommentek

  • Pénztörténet: www.youtube.com/watch?v=Fpk35NO5WtE&feature=share&list=UU86sMRBpLe1Xteg1GVXg12A&index=3 (2013.12.23. 13:15) Árulás és koncepciós per az ezerforintoson
  • sztahanov: tudni kell mikor feladni, en pl most harom ora keresgeles utan feladtam. (2010.08.25. 22:58) Blob
  • sztahanov: ez mar jobb, de most dolgozom epp :-) (2010.08.25. 12:45) Blob
  • Utolsó 20

Friss topikok

  • Pénztörténet: www.youtube.com/watch?v=Fpk35NO5WtE&feature=share&list=UU86sMRBpLe1Xteg1GVXg12A&index=3 (2013.12.23. 13:15) Árulás és koncepciós per az ezerforintoson
  • sztahanov: tudni kell mikor feladni, en pl most harom ora keresgeles utan feladtam. (2010.08.25. 22:58) Blob
  • Gm: :))) (2010.03.21. 19:33) Szakácskések I. – A séfkés
  • gasztromán: Nagy örmmel olvastam a boltról a cikket! Én is felfedeztem, kb. fél évvel ezelőtt. Tényleg unikum ... (2009.07.29. 23:47) azbeszt - Marha jó!
  • burqus: Köszi a poszt beidézését és a jó hír terjesztését. Viszont a képeken egérmozgatásra felpattanó abl... (2008.09.28. 18:03) A legjobb kínai vendéglő

Twitter

Nincs megjeleníthető elem

Címkék

api (1) biz (4) blogok (3) bookmarks (1) dizájn (4) facebook (13) feedek (19) friendfeed (1) gmail (3) google (19) iphone (4) kommentek (8) labels (1) myspace (3) nokia mosh (1) openid (2) orkut (1) sn (54) start (3) twitter (3) ui (8) videó (2) widgets (1) yahoo mash (1) Címkefelhő

Scobleizer

Nincs megjeleníthető elem

izotov

Google Reader shared items

filter
admin

Külső feed

Nincs megjeleníthető elem

Google Reader Starred

Doransky

Nincs megjeleníthető elem

FireUnit: JavaScript Unit Testing Extension

2009.01.04. 17:02 Ajaxian » Front Page eszpee
Shared by eszpee
a példakód végefele kezd kurva jó lenni

John Resig and Jan Odvarko have announced something pretty darn cool, FireUnit.

FireUnit provides a simple JavaScript API for doing simple test logging and viewing within a new tab of Firebug.

The example given shows the API nicely:

JAVASCRIPT:
  1.  
  2. // Simple true-like/false-like testing
  3. fireunit.ok( true, "I'm going to pass!" );
  4. fireunit.ok( false, "I'm going to fail!" );
  5.  
  6. // Compare two strings - shows a diff of the
  7. // results if they're different
  8. fireunit.compare(
  9.   "The lazy fox jumped over the log.",
  10.   "The lazy brown fox jumped the log.",
  11.   "Are these two strings the same?"
  12. );
  13.  
  14. // Compare a string using a regular expression
  15. fireunit.reCompare(
  16.   /The .* fox jumped the log./,
  17.   "The lazy brown fox jumped the log.",
  18.   "Compare a string using a RegExp."
  19. );
  20.  
  21. // Display the total results
  22. fireunit.testDone();
  23.  
  24. // -- browser events
  25.  
  26. // You can also simulate browser events
  27. var input = document.getElementsByTagName("input")[0];
  28. fireunit.mouseDown( input );
  29. fireunit.click( input );
  30. fireunit.focus( input );
  31. fireunit.key( input, "a" );
  32.  
  33. // -- Run batches
  34.  
  35. // Or run multiple pages of tests:
  36. fireunit.runTests("test2.html", "test3.html");
  37.  
  38. // Place at the end of every test file in order to continue
  39. fireunit.testDone();
  40.  

A bejegyzés trackback címe:

https://izotov.blog.hu/api/trackback/id/tr60857258

Kommentek:

A hozzászólások a vonatkozó jogszabályok  értelmében felhasználói tartalomnak minősülnek, értük a szolgáltatás technikai  üzemeltetője semmilyen felelősséget nem vállal, azokat nem ellenőrzi. Kifogás esetén forduljon a blog szerkesztőjéhez. Részletek a  Felhasználási feltételekben és az adatvédelmi tájékoztatóban.

Nincsenek hozzászólások.
süti beállítások módosítása