Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 11c5630b2c8f00f64861e0dac51a202a > files > 248

php-gtk2-2.0.1-12mdv2010.0.i586.rpm

<?php
// Call GtkTextViewTest::main() if this source file is executed directly.
if (!defined("PHPUnit_MAIN_METHOD")) {
    define("PHPUnit_MAIN_METHOD", "GtkTextViewTest::main");
}

require_once "PHPUnit/Framework/TestCase.php";
require_once "PHPUnit/Framework/TestSuite.php";

// You may remove the following line when all tests have been implemented.
require_once "PHPUnit/Framework/IncompleteTestError.php";

/**
 * Test class for GtkTextView.
 * Generated by PHPUnit_Util_Skeleton on 2006-03-07 at 11:37:05.
 */
class GtkTextViewTest extends PHPUnit_Framework_TestCase {
    /**
     * Runs the test methods of this class.
     *
     * @access public
     * @static
     */
    public static function main() {
        require_once "PHPUnit/TextUI/TestRunner.php";

        $suite  = new PHPUnit_Framework_TestSuite("GtkTextViewTest");
        $result = PHPUnit_TextUI_TestRunner::run($suite);
    }

    /**
     * Sets up the fixture, for example, open a network connection.
     * This method is called before a test is executed.
     *
     * @access protected
     */
    protected function setUp() {
        $this->tv = new GtkTextView();
    }

    /**
     * Tears down the fixture, for example, close a network connection.
     * This method is called after a test is executed.
     *
     * @access protected
     */
    protected function tearDown() {
    }

    /**
     * @todo Implement testAdd_child_at_anchor().
     */
    public function testAdd_child_at_anchor() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testAdd_child_in_window().
     */
    public function testAdd_child_in_window() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testBackward_display_line().
     */
    public function testBackward_display_line() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testBackward_display_line_start().
     */
    public function testBackward_display_line_start() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testBuffer_to_window_coords().
     */
    public function testBuffer_to_window_coords() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testForward_display_line().
     */
    public function testForward_display_line() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testForward_display_line_end().
     */
    public function testForward_display_line_end() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_accepts_tab().
     */
    public function testGet_accepts_tab() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_border_window_size().
     */
    public function testGet_border_window_size() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_buffer().
     */
    public function testGet_buffer() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_cursor_visible().
     */
    public function testGet_cursor_visible() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_default_attributes().
     */
    public function testGet_default_attributes() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_editable().
     */
    public function testGet_editable() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_indent().
     */
    public function testGet_indent() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_iter_at_location().
     */
    public function testGet_iter_at_location() {
        $iter = $this->tv->get_iter_at_location(0,0);
        $this->assertEquals('GtkTextIter', get_class($iter));
        $this->assertNotNull($iter);
    }

    /**
     * @todo Implement testGet_iter_at_position().
     */
    public function testGet_iter_at_position() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * 
     */
    public function testGet_iter_location() {
        $iter = $this->tv->get_buffer()->get_end_iter();
        $this->assertNotNull($iter);

        $rect = $this->tv->get_iter_location($iter);
        $this->assertEquals('GdkRectangle', get_class($rect));
        $this->assertNotNull($rect);
        //this values *should* be null as the view isn't visible
        $this->assertEquals(0, $rect->x);
        $this->assertEquals(0, $rect->y);
    }

    /**
     * @todo Implement testGet_justification().
     */
    public function testGet_justification() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_left_margin().
     */
    public function testGet_left_margin() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_line_at_y().
     */
    public function testGet_line_at_y() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_line_yrange().
     */
    public function testGet_line_yrange() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_overwrite().
     */
    public function testGet_overwrite() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_pixels_above_lines().
     */
    public function testGet_pixels_above_lines() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_pixels_below_lines().
     */
    public function testGet_pixels_below_lines() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_pixels_inside_wrap().
     */
    public function testGet_pixels_inside_wrap() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_right_margin().
     */
    public function testGet_right_margin() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_tabs().
     */
    public function testGet_tabs() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     *
     */
    public function testGet_visible_rect() {
        $rect = $this->tv->get_visible_rect();
        $this->assertEquals('GdkRectangle', get_class($rect));
        $this->assertNotNull($rect);
        //this values *should* be null as the view isn't visible
        $this->assertEquals(0, $rect->x);
        $this->assertEquals(0, $rect->y);
//        $this->assertEquals(0, $rect->width);
//        $this->assertEquals(0, $rect->height);
    }

    /**
     * @todo Implement testGet_window().
     */
    public function testGet_window() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_window_type().
     */
    public function testGet_window_type() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testGet_wrap_mode().
     */
    public function testGet_wrap_mode() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testMove_child().
     */
    public function testMove_child() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testMove_mark_onscreen().
     */
    public function testMove_mark_onscreen() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testMove_visually().
     */
    public function testMove_visually() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testPlace_cursor_onscreen().
     */
    public function testPlace_cursor_onscreen() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testScroll_mark_onscreen().
     */
    public function testScroll_mark_onscreen() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testScroll_to_iter().
     */
    public function testScroll_to_iter() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testScroll_to_mark().
     */
    public function testScroll_to_mark() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_accepts_tab().
     */
    public function testSet_accepts_tab() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_border_window_size().
     */
    public function testSet_border_window_size() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_buffer().
     */
    public function testSet_buffer() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_cursor_visible().
     */
    public function testSet_cursor_visible() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_editable().
     */
    public function testSet_editable() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_indent().
     */
    public function testSet_indent() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_justification().
     */
    public function testSet_justification() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_left_margin().
     */
    public function testSet_left_margin() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_overwrite().
     */
    public function testSet_overwrite() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_pixels_above_lines().
     */
    public function testSet_pixels_above_lines() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_pixels_below_lines().
     */
    public function testSet_pixels_below_lines() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_pixels_inside_wrap().
     */
    public function testSet_pixels_inside_wrap() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_right_margin().
     */
    public function testSet_right_margin() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_tabs().
     */
    public function testSet_tabs() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testSet_wrap_mode().
     */
    public function testSet_wrap_mode() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testStarts_display_line().
     */
    public function testStarts_display_line() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }

    /**
     * @todo Implement testWindow_to_buffer_coords().
     */
    public function testWindow_to_buffer_coords() {
        // Remove the following line when you implement this test.
        throw new PHPUnit_Framework_IncompleteTestError;
    }
}

// Call GtkTextViewTest::main() if this source file is executed directly.
if (PHPUnit_MAIN_METHOD == "GtkTextViewTest::main") {
    GtkTextViewTest::main();
}
?>