Translation update done using Pootle.
[phpmyadmin/gandalfml.git] / test / PmaSeleniumXssTest.php
blob5099506f917f1374abf553ccb22ab390b3a9e644
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Selenium TestCase for XSS related tests
6 * @package phpMyAdmin-test
7 */
9 require_once('PmaSeleniumTestCase.php');
11 class PmaSeleniumXSSTest extends PmaSeleniumTestCase
13 public function testXssQueryTab()
15 $this->doLogin();
16 $this->selectFrame("frame_content");
17 $this->click("link=SQL");
18 $this->waitForPageToLoad("30000");
19 $this->type("sqlquery", "'\"><script>alert(123);</script>");
20 $this->click("SQL");
21 // If an alert pops up the test fails, since we don't handle an alert.