Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Unified Diff: test/run.sh

Issue 11359215: Ensure parent id added only when we need an identifier for the child (Closed) Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/run.sh
diff --git a/test/run.sh b/test/run.sh
index ab9a60fd1fb65d116d01adc2f06af8469440c07a..2eb5ea86294a7c7e9c150da33927d7ef85773de8 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -20,13 +20,9 @@ DART_FLAGS="--checked"
TEST_PATTERN=$1
function show_diff {
- echo -en "Expected"
- echo -n " "
- echo -e "Output"
- diff -t -y $1 $2 | \
- sed -e "s/\(^.\{63\}\)\(\s[<]\(\s\|$\)\)\(.*\)/\1\2\4/" |\
- sed -e "s/\(^.\{63\}\)\(\s[|]\(\s\|$\)\)\(.*\)/\1\2\4/" |\
- sed -e "s/\(^.\{63\}\)\(\s[>]\(\s\|$\)\)\(.*\)/\1\2\4/"
+ diff -u $1 $2 | \
+ sed -e "s/^\(+.*\)/\x1b[32m\1\x1b[0m/" |\
+ sed -e "s/^\(-.*\)/\x1b[31m\1\x1b[0m/"
return 1
}
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698