|
Revision 4156, 0.6 kB
(checked in by euzuro, 1 year ago)
|
rolling back ;'s after a function declaration, cleaning up some whitespace. no functional changes. all tests still pass ff && ie6. note that it has never been either a policy or a priority for us to maintain coding standards in the test files. I'm only doing this as an exercise for my brain, waiting for the second cup of coffee to kick in.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<html> |
|---|
| 2 |
<head> |
|---|
| 3 |
<script src="../lib/OpenLayers.js"></script> |
|---|
| 4 |
<script type="text/javascript"> |
|---|
| 5 |
|
|---|
| 6 |
function test_01_Format_constructor(t) { |
|---|
| 7 |
t.plan(4); |
|---|
| 8 |
|
|---|
| 9 |
var options = {'foo': 'bar'}; |
|---|
| 10 |
var format = new OpenLayers.Format(options); |
|---|
| 11 |
t.ok(format instanceof OpenLayers.Format, |
|---|
| 12 |
"new OpenLayers.Format returns object" ); |
|---|
| 13 |
t.eq(format.foo, "bar", "constructor sets options correctly"); |
|---|
| 14 |
t.eq(typeof format.read, "function", "format has a read function"); |
|---|
| 15 |
t.eq(typeof format.write, "function", "format has a write function"); |
|---|
| 16 |
} |
|---|
| 17 |
|
|---|
| 18 |
</script> |
|---|
| 19 |
</head> |
|---|
| 20 |
<body> |
|---|
| 21 |
</body> |
|---|
| 22 |
</html> |
|---|