diff options
author | Godin <mandrikov@gmail.com> | 2010-09-27 10:09:23 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-09-27 10:09:23 +0000 |
commit | 3727f84e84453381a51ae40a6e804520e6d0d31a (patch) | |
tree | f72418416d6664d44ba603ea215684a4f8f630c9 /tests | |
parent | 1cbc025312c171925195046d2601a59d2c858e49 (diff) | |
download | sonarqube-3727f84e84453381a51ae40a6e804520e6d0d31a.tar.gz sonarqube-3727f84e84453381a51ae40a6e804520e6d0d31a.zip |
SONAR-1709:
* Add ruby-helper for URL construction for static resources from plugins
* Add integration test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/reference-plugin/src/main/resources/static/file.html | 5 | ||||
-rw-r--r-- | tests/integration/tests/src/it/selenium/SONAR-1709-static-resources.html | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/integration/reference-plugin/src/main/resources/static/file.html b/tests/integration/reference-plugin/src/main/resources/static/file.html new file mode 100644 index 00000000000..5ae990c1af3 --- /dev/null +++ b/tests/integration/reference-plugin/src/main/resources/static/file.html @@ -0,0 +1,5 @@ +<html>
+<body>
+Text from static resource
+</body>
+</html>
diff --git a/tests/integration/tests/src/it/selenium/SONAR-1709-static-resources.html b/tests/integration/tests/src/it/selenium/SONAR-1709-static-resources.html new file mode 100644 index 00000000000..b172c2a6728 --- /dev/null +++ b/tests/integration/tests/src/it/selenium/SONAR-1709-static-resources.html @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>SONAR-1709-static-resources</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">SONAR-1709-static-resources</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/static/reference-plugin/file.html</td> + <td></td> +</tr> +<tr> + <td>assertText</td> + <td>//body</td> + <td>Text from static resource</td> +</tr> + +</tbody></table> +</body> +</html> |