phpmyadmin/test/selenium/PmaSeleniumXssTest.php
Zarubin Stas f7d7102d2f - Unit Test grouped by library directory
- Added configuration file phpunit.xml.dist and bootstraper-dist.php
 - Ignoring phpunit.xml, bootstraper.php and build/
2011-06-29 20:06:27 +03:00

26 lines
629 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.
}
}
?>