diff options
author | Steve Block <steveblock@google.com> | 2010-09-13 14:46:30 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-13 14:46:30 +0100 |
commit | 040564aa02a28de2f85453902fcde0325b911d9b (patch) | |
tree | 32c0d1452fcf258bef03e7b8cca8f434bb2830b3 /WebKitTools | |
parent | a62761cdadec4e097c2dec84fb740e188e2a9f3a (diff) | |
download | external_webkit-040564aa02a28de2f85453902fcde0325b911d9b.zip external_webkit-040564aa02a28de2f85453902fcde0325b911d9b.tar.gz external_webkit-040564aa02a28de2f85453902fcde0325b911d9b.tar.bz2 |
Fix view_source.php for DumpRenderTree2
highlight_string() echos the result of the highlighting and returns
a boolean success value. The existing code incorrectly echoes this
boolean as part of the result.
Change-Id: Icbfca6d8232ba3ad196f5909ad6c1ab4ac61f890
Diffstat (limited to 'WebKitTools')
-rw-r--r-- | WebKitTools/DumpRenderTree/android/view_source.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKitTools/DumpRenderTree/android/view_source.php b/WebKitTools/DumpRenderTree/android/view_source.php index dfe6d12..fc9ae31 100644 --- a/WebKitTools/DumpRenderTree/android/view_source.php +++ b/WebKitTools/DumpRenderTree/android/view_source.php @@ -40,12 +40,12 @@ return; } - #If we don't want realpath to append any prefixes we need to pass it an absolute path + # If we don't want realpath to append any prefixes we need to pass it an absolute path $src = realpath(getAbsolutePath($_GET['src'])); echo "<html><body>"; # TODO: Add link following and syntax highlighting for html and js. - echo highlight_string(file_get_contents($src)); + highlight_string(file_get_contents($src)); echo "</body></html>"; } |