Skip to content

Commit 582dd87

Browse files
committed
added buddy test files and travis config
1 parent d7254cc commit 582dd87

22 files changed

+48
-685
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: haxe
2+
sudo: false
3+
hxml:
4+
- test.hxml
5+
6+
script:
7+
- make

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
default:
2+
haxe test.hxml
3+
neko build/neko_test.n

test.hxml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Neko
2+
-main Main
3+
-lib buddy
4+
-lib utest
5+
-cp test
6+
-neko build/neko_test.n

test/Main.hx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import buddy.*;
2+
3+
class Main implements buddy.Buddy<[
4+
core.url.URLTest
5+
]> {}

test/core/url/URLTest.hx

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package core.url;
2+
3+
import buddy.*;
4+
using buddy.Should;
5+
6+
import cocktail.core.url.URL;
7+
8+
class URLTest extends BuddySuite {
9+
10+
public function new()
11+
{
12+
describe('URL parsing and serializing', function () {
13+
describe('#fromString', function () {
14+
it('should parse an URL', function () {
15+
var url = URL.fromString('http://www.domain.com/');
16+
url.host.should.be('www.domain.com');
17+
url.scheme.should.be('http');
18+
});
19+
20+
it('should parse an URL with a path', function () {
21+
var url = URL.fromString('http://www.domain.com/resource/');
22+
url.path.should.be('/resource/');
23+
});
24+
});
25+
});
26+
}
27+
}

test/dom/DOMTestAs3.swf

-183 KB
Binary file not shown.

test/dom/DOMTests.hx

-208
This file was deleted.

test/dom/DOMTestsAs3.html

-23
This file was deleted.

test/dom/buildDOMTests_as3.hxml

-5
This file was deleted.

test/focus/FocusTests.hx

-66
This file was deleted.

test/focus/buildFocusTests_as3.hxml

-5
This file was deleted.

test/focus/focusTestAs3.html

-23
This file was deleted.

test/focus/focusTestAs3.swf

-182 KB
Binary file not shown.

0 commit comments

Comments
 (0)