|
From: Richard W. <ri...@ro...> - 2011-05-22 15:15:19
|
I have found that a response page I am testing specifies a meta refresh that is not being followed by user_agent.php/fetchWhileRedirected. Here is the meta element on the page: <meta http-equiv="Refresh" content="1;URL=import.php?error=1" /> The problem is that the fetchWhileRedirected assumes that the refresh time will always be zero - here is the pattern tested: $pattern = '|<meta\shttp-equiv="Refresh"\scontent="0;\surl=(.*)">|'; On this particular page the creator wanted to show a little message and then quickly forward to the redirect hence the 1 second delay. Other pages in this site have other delays for longer messages. Should this be changed in simpletest to allow any refresh delay? Richard |