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