testing: direct port of r4146 to fix message color issue

This commit is contained in:
Jeff Kaufman
2014-08-13 10:13:13 -04:00
parent d6d3b90ea3
commit e6c5bc1b2e
+2 -3
View File
@@ -2682,15 +2682,14 @@ check fgrep -q "awaiting response... 304" $OUTFILE
# Test if the warning messages are colored in message_history page.
# We color the messages in message_history page to make it clearer to read.
# Red for Error messages. Blue for Warning messages.
# Red for Error messages. Brown for Warning messages.
# Orange for Fatal messages. Black by default.
# Won't test Error messages and Fatal messages in this test.
# TODO(xqyin): test all the types of messages in future unit test.
start_test Messages are colored in message_history
INJECT=$($CURL --silent $HOSTNAME/?PageSpeed=Warning_trigger)
OUT=$($WGET -q -O - $HOSTNAME/pagespeed_admin/message_history | \
grep Warning_trigger)
check_from "$OUT" fgrep -q "color:blue;"
check_from "$OUT" fgrep -q "color:brown;"
start_test Downstream cache integration caching headers.
URL="http://downstreamcacheresource.example.com/mod_pagespeed_example/images/"