summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwei <>2006-05-27 03:53:20 +0000
committerwei <>2006-05-27 03:53:20 +0000
commitf21a3840e2486a298ec6976771888f02e3748ebb (patch)
tree7b5ee50c43a3289762dd7b505e10916c74e979da /tests
parentd333551610131ab486ef566f20b9762645ef5ebb (diff)
Fixed #162 and #163.
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket163.page9
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/config.xml3
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket163TestCase.php14
3 files changed, 26 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket163.page b/tests/FunctionalTests/tickets/protected/pages/Ticket163.page
new file mode 100644
index 00000000..aa05e601
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket163.page
@@ -0,0 +1,9 @@
+<com:TContent ID="Content">
+ <h1>Test Ticket #163</h1>
+ <h2>Missing currency sign in TNumberFormat if Value is 0</h2>
+ <com:TNumberFormat Type="currency" Culture="no" Currency="NOK" Value="100"/>
+ <hr />
+ <com:TNumberFormat Type="currency" Culture="no" Currency="NOK" Value="0"/>
+ <hr />
+ <com:TNumberFormat Type="currency" Culture="no" Currency="NOK" Value="-100"/>
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/config.xml b/tests/FunctionalTests/tickets/protected/pages/config.xml
index 83bb5791..48a0114c 100644
--- a/tests/FunctionalTests/tickets/protected/pages/config.xml
+++ b/tests/FunctionalTests/tickets/protected/pages/config.xml
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
+ <paths>
+ <using namespace="System.I18N.*" />
+ </paths>
<pages MasterClass="Application.pages.Layout" />
</configuration> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket163TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket163TestCase.php
new file mode 100644
index 00000000..cc78c466
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket163TestCase.php
@@ -0,0 +1,14 @@
+<?php
+
+class Ticket163TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket163');
+ $this->assertTextPresent('kr 100,00');
+ $this->assertTextPresent('kr 0,00');
+ $this->assertTextPresent('-kr 100,00');
+ }
+}
+
+?> \ No newline at end of file