alloy-js-test-san 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,60 +24,27 @@ To automatically run your test see http://github.com/alloy/kicker/tree/master.
24
24
 
25
25
  You betcha! (See the example.)
26
26
 
27
- But these shouldn't likely be a typical use case outside of testing the
28
- Prototype implementation, I hope. So it actually works quite well seeing how
29
- many tests pass ;)
27
+ But these shouldn't likely be a typical use case, I hope. So it actually works
28
+ quite well seeing how many tests pass ;) The one that does fail has to do with
29
+ the fact that there's no window at all. I haven't yet tried if it will simply
30
+ work with a NSWindow.
30
31
 
31
32
  == Example:
32
33
 
33
34
  This is the output of the regression tests which are the Prototype unit tests:
34
35
 
35
36
  $ ./bin/jstest test/regression/prototype/unit/*_test.html
36
- EEFF.......F..............................................................................................................................F
37
- ..............................................................F............................................................................
38
- ..............................................................................
39
-
40
- 1) Error:
41
- testSynchronousRequest (Unit test file | Ajax | default template | 2009-04-11 15:28) [test/regression/prototype/unit/ajax_test.html]:
42
- TypeError: Null value, error=(TypeError: Null value)
43
-
44
- 2) Error:
45
- testAsynchronousRequest (Unit test file | Ajax | default template | 2009-04-11 15:28) [test/regression/prototype/unit/ajax_test.html]:
46
- TypeError: Null value, error=(TypeError: Null value)
47
-
48
- 3) Failed:
49
- testUpdater (Unit test file | Ajax | default template | 2009-04-11 15:28) [test/regression/prototype/unit/ajax_test.html]:
50
- Failure: assertEqual
51
- expected: <'pack my box with <em>five dozen</em> liquor jugs! oh, how <strong>quickly</strong> daft jumping zebras vex...'>, actual: <''>
52
- Failure: assertEqual
53
- expected: <'pack my box with <em>five dozen</em> liquor jugs! oh, how <strong>quickly</strong> daft jumping zebras vex...'>, actual: <''>
54
-
55
- 4) Failed:
56
- testUpdaterWithInsertion (Unit test file | Ajax | default template | 2009-04-11 15:28) [test/regression/prototype/unit/ajax_test.html]:
57
- Failure: assertEqual
58
- expected: <'pack my box with <em>five dozen</em> liquor jugs! oh, how <strong>quickly</strong> daft jumping zebras vex...'>, actual: <''>
59
- Failure: assertEqual
60
- expected: <'pack my box with <em>five dozen</em> liquor jugs! oh, how <strong>quickly</strong> daft jumping zebras vex...'>, actual: <''>
61
- Failure: assertEqual
62
- expected: <'five dozen'>, actual: <''>
63
-
64
- 5) Failed:
65
- testResponseText (Unit test file | Ajax | default template | 2009-04-11 15:28) [test/regression/prototype/unit/ajax_test.html]:
66
- Failure: assertEqual
67
- expected: <'pack my box with <em>five dozen</em> liquor jugs! oh, how <strong>quickly</strong> daft jumping zebras vex...'>, actual: <''>
68
-
69
- 6) Failed:
37
+ ...................................................................................................................................
38
+ .......F...........................................................................................................................
39
+ ..............................................................................................
40
+
41
+ 1) Failed:
70
42
  testViewportDimensions (Unit test file | Dom | default template | 2009-04-11 15:28) [test/regression/prototype/unit/dom_test.html]:
71
43
  Failure: NOTE: YOU MUST ALLOW JAVASCRIPT TO RESIZE YOUR WINDOW FOR THIS TEST TO PASS
72
44
  expected: <50>, actual: <0>
73
45
  Failure: NOTE: YOU MUST ALLOW JAVASCRIPT TO RESIZE YOUR WINDOW FOR THIS TEST TO PASS
74
46
  expected: <50>, actual: <0>
75
47
 
76
- 7) Failed:
77
- testFormRequest (Unit test file | Form | default template | 2009-04-11 15:28) [test/regression/prototype/unit/form_test.html]:
78
- Failure: wrong default action for form element with empty action attribute
79
- got <false>
80
-
81
- Finished in 17.729032 seconds.
48
+ Finished in 17.725139 seconds.
82
49
 
83
- 356 tests, 2237 assertions, 9 failures, 2 errors
50
+ 356 tests, 2246 assertions, 2 failures, 0 errors
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 1
@@ -21,7 +21,7 @@ new Test.Unit.Runner({
21
21
  this.assertEqual("", $("content").innerHTML);
22
22
 
23
23
  this.assertEqual(0, Ajax.activeRequestCount);
24
- new Ajax.Request("../fixtures/hello.js", {
24
+ new Ajax.Request("fixtures/hello.js", {
25
25
  asynchronous: false,
26
26
  method: 'GET',
27
27
  evalJS: 'force'
@@ -35,7 +35,7 @@ new Test.Unit.Runner({
35
35
  testAsynchronousRequest: function() {
36
36
  this.assertEqual("", $("content").innerHTML);
37
37
 
38
- new Ajax.Request("../fixtures/hello.js", {
38
+ new Ajax.Request("fixtures/hello.js", {
39
39
  asynchronous: true,
40
40
  method: 'get',
41
41
  evalJS: 'force'
@@ -49,7 +49,7 @@ new Test.Unit.Runner({
49
49
  testUpdater: function() {
50
50
  this.assertEqual("", $("content").innerHTML);
51
51
 
52
- new Ajax.Updater("content", "../fixtures/content.html", { method:'get' });
52
+ new Ajax.Updater("content", "fixtures/content.html", { method:'get' });
53
53
 
54
54
  this.wait(1000, function() {
55
55
  this.assertEqual(sentence, $("content").innerHTML.strip().toLowerCase());
@@ -58,9 +58,9 @@ new Test.Unit.Runner({
58
58
  this.assertEqual("", $("content").innerHTML);
59
59
 
60
60
  new Ajax.Updater({ success:"content", failure:"content2" },
61
- "../fixtures/content.html", { method:'get', parameters:{ pet:'monkey' } });
61
+ "fixtures/content.html", { method:'get', parameters:{ pet:'monkey' } });
62
62
 
63
- new Ajax.Updater("", "../fixtures/content.html", { method:'get', parameters:"pet=monkey" });
63
+ new Ajax.Updater("", "fixtures/content.html", { method:'get', parameters:"pet=monkey" });
64
64
 
65
65
  this.wait(1000, function() {
66
66
  this.assertEqual(sentence, $("content").innerHTML.strip().toLowerCase());
@@ -71,16 +71,16 @@ new Test.Unit.Runner({
71
71
 
72
72
  testUpdaterWithInsertion: function() {
73
73
  $('content').update();
74
- new Ajax.Updater("content", "../fixtures/content.html", { method:'get', insertion: Insertion.Top });
74
+ new Ajax.Updater("content", "fixtures/content.html", { method:'get', insertion: Insertion.Top });
75
75
  this.wait(1000, function() {
76
76
  this.assertEqual(sentence, $("content").innerHTML.strip().toLowerCase());
77
77
  $('content').update();
78
- new Ajax.Updater("content", "../fixtures/content.html", { method:'get', insertion: 'bottom' });
78
+ new Ajax.Updater("content", "fixtures/content.html", { method:'get', insertion: 'bottom' });
79
79
  this.wait(1000, function() {
80
80
  this.assertEqual(sentence, $("content").innerHTML.strip().toLowerCase());
81
81
 
82
82
  $('content').update();
83
- new Ajax.Updater("content", "../fixtures/content.html", { method:'get', insertion: 'after' });
83
+ new Ajax.Updater("content", "fixtures/content.html", { method:'get', insertion: 'after' });
84
84
  this.wait(1000, function() {
85
85
  this.assertEqual('five dozen', $("content").next().innerHTML.strip().toLowerCase());
86
86
  });
@@ -222,11 +222,11 @@ new Test.Unit.Runner({
222
222
  },
223
223
 
224
224
  testResponseText: function() {
225
- new Ajax.Request("../fixtures/empty.html", extendDefault({
225
+ new Ajax.Request("fixtures/empty.html", extendDefault({
226
226
  onComplete: function(transport) { this.assertEqual('', transport.responseText) }.bind(this)
227
227
  }));
228
228
 
229
- new Ajax.Request("../fixtures/content.html", extendDefault({
229
+ new Ajax.Request("fixtures/content.html", extendDefault({
230
230
  onComplete: function(transport) { this.assertEqual(sentence, transport.responseText.toLowerCase()) }.bind(this)
231
231
  }));
232
232
  },
@@ -317,7 +317,7 @@ new Test.Unit.Runner({
317
317
 
318
318
  // with empty action attribute
319
319
  request = $("ffe").request({ method: 'post' });
320
- this.assert(request.url.include("/tmp/form_test.html"),
320
+ this.assert(request.url.include("/form_test.html"),
321
321
  'wrong default action for form element with empty action attribute');
322
322
  },
323
323
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alloy-js-test-san
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran