summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor/tests/selenium/WikiDialogs_Links.php
blob: 07f1b41bb9aea04d327261340a1177e5499cee98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
require_once 'WikiDialogs_Links_Setup.php';
/**
 * Description of WikiNewPageDialogs
 *
 * @author bhagyag, pdhanda
 * 
 * This test case is part of the WikiEditorTestSuite.
 * Configuration for these tests are dosumented as part of extensions/WikiEditor/tests/selenium/WikiEditorTestSuite.php
 * 
 */
class WikiDialogs_Links extends WikiDialogs_Links_Setup {
    // Set up the testing environment
    function setup() {
        parent::setUp();
        parent::doCreateInternalTestPageIfMissing();
    }
    
	function tearDown() {
		parent::doLogout();
        parent::tearDown();
    }	

     //Create a new page temporary
    function createNewPage() {
       parent::doOpenLink();
       parent::login();
       parent::doCreateNewPageTemporary();
    }

     // Add a internal link and verify
    function testInternalLink() {
       $this->createNewPage();
       parent::verifyInternalLink();
    }

     // Add a internal link with different display text and verify
    function testInternalLinkWithDisplayText() {
       $this->createNewPage();
       parent::verifyInternalLinkWithDisplayText();
    }

     // Add a internal link with blank display text and verify
    function testInternalLinkWithBlankDisplayText() {
       $this->createNewPage();
       parent::verifyInternalLinkWithBlankDisplayText();
    }

    // Add external link and verify
    function testExternalLink() {
       $this->createNewPage();
       parent::verifyExternalLink();
    }

     // Add external link with different display text and verify
    function testExternalLinkWithDisplayText( ) {
       $this->createNewPage();
       parent::verifyExternalLinkWithDisplayText();
    }

     // Add external link with Blank display text and verify
    function testExternalLinkWithBlankDisplayText() {
       $this->createNewPage();
       parent::verifyExternalLinkWithBlankDisplayText();
    }

}
?>