phpmyadmin/test/selenium/PmaSeleniumXssTest.php
Michal Čihař e56949f160 Use package name PhpMyAdmin
Needed to match phpdoc rules as package name must begin with upper case.
2011-10-25 10:13:17 +02:00

26 lines
626 B
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Selenium TestCase for XSS related tests
*
* @package PhpMyAdmin-test
* @group Selenium
*/
require_once 'PmaSeleniumTestCase.php';
class PmaSeleniumXSSTest extends PmaSeleniumTestCase
{
public function testXssQueryTab()
{
$this->doLogin();
$this->selectFrame("frame_content");
$this->click("link=SQL");
$this->waitForPageToLoad("30000");
$this->type("sqlquery", "'\"><script>alert(123);</script>");
$this->click("SQL");
// If an alert pops up the test fails, since we don't handle an alert.
}
}
?>