From 751ae8c6b3fe5a47b0592a4dd7b719ec264486bc Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 14 Feb 2006 04:43:45 +0000 Subject: Added 3 FT for TDataGrid demos. --- .../quickstart/Controls/DataGrid1TestCase.php | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php (limited to 'tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php') diff --git a/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php new file mode 100644 index 00000000..d20a7955 --- /dev/null +++ b/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php @@ -0,0 +1,33 @@ +open("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample1&notheme=true", ""); + + // verify if all required texts are present + $this->verifyTextPresent('id',''); + $this->verifyTextPresent('name',''); + $this->verifyTextPresent('quantity',''); + $this->verifyTextPresent('price',''); + $this->verifyTextPresent('imported',''); + $this->verifyTextPresent('ITN001',''); + $this->verifyTextPresent('Motherboard',''); + $this->verifyTextPresent('100',''); + $this->verifyTextPresent('true',''); + $this->verifyTextPresent('ITN019',''); + $this->verifyTextPresent('Speaker',''); + $this->verifyTextPresent('35',''); + $this->verifyTextPresent('65',''); + $this->verifyTextPresent('false',''); + + // verify specific table tags + $this->verifyElementPresent("ctl0_body_DataGrid"); + $this->verifyAttribute("ctl0_body_DataGrid@rules","all"); + $this->verifyAttribute("ctl0_body_DataGrid@cellpadding","2"); + $this->verifyAttribute("ctl0_body_DataGrid@cellspacing","0"); + } +} + +?> \ No newline at end of file -- cgit v1.2.3