From 6587f6ba7d047ddc1686c080090afe7d53365bd4 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 24 Apr 2012 11:35:56 -0700 Subject: first pass RT4 merge, RT#13852 --- .../html/Callbacks/logout.t/NoAuth/Logout.html/Default | 6 ++++++ rt/t/web/html/NoAuth/js/not-by-default.js | 3 +++ rt/t/web/html/delete-article-name-method.html | 15 +++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 rt/t/web/html/Callbacks/logout.t/NoAuth/Logout.html/Default create mode 100644 rt/t/web/html/NoAuth/js/not-by-default.js create mode 100644 rt/t/web/html/delete-article-name-method.html (limited to 'rt/t/web/html') diff --git a/rt/t/web/html/Callbacks/logout.t/NoAuth/Logout.html/Default b/rt/t/web/html/Callbacks/logout.t/NoAuth/Logout.html/Default new file mode 100644 index 000000000..90278ae49 --- /dev/null +++ b/rt/t/web/html/Callbacks/logout.t/NoAuth/Logout.html/Default @@ -0,0 +1,6 @@ +<%args> +$URL + +<%init> +$$URL = 'http://bestpractical.com/rt'; + diff --git a/rt/t/web/html/NoAuth/js/not-by-default.js b/rt/t/web/html/NoAuth/js/not-by-default.js new file mode 100644 index 000000000..568f670ee --- /dev/null +++ b/rt/t/web/html/NoAuth/js/not-by-default.js @@ -0,0 +1,3 @@ +function just_testing() { + alert("hi"); +} diff --git a/rt/t/web/html/delete-article-name-method.html b/rt/t/web/html/delete-article-name-method.html new file mode 100644 index 000000000..27592c1d0 --- /dev/null +++ b/rt/t/web/html/delete-article-name-method.html @@ -0,0 +1,15 @@ +<%INIT> +# This is used by t/web/articles-links.t. Since we fork off a server +# under most test configurations, and we need a way to run code in the +# middle of the test script, we have to play at shenanigans to delete +# RT::Article's Name method. Other options were a Plack::Middleware that +# eval'd code given by paths like /__perl/(.+) (is scary), a signal +# handler (fails under apache), and only running articles-links.t for +# inline tests (fails under apache and standalone) + +delete $RT::Article::{Name}; + + + +<% RT::Article->can('Name') ? '{exists}' : '{deleted}' %> + -- cgit v1.2.1