Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle White <kyle.white@xamarin.com>2015-09-29 02:17:13 +0300
committerKyle White <kyle.white@xamarin.com>2015-09-29 02:21:21 +0300
commit05874302a87bfe227d5ee21a64ae2bb97e73505a (patch)
treef41c8f1c251db25ea148b4e414be0d8743ebf555 /main/tests/UserInterfaceTests/Util.cs
parent929a518c7759e958ed0c60d94f081f3cbc163f13 (diff)
[UITest] Add util for bolded text
It is common we need to bold text, this will help.
Diffstat (limited to 'main/tests/UserInterfaceTests/Util.cs')
-rw-r--r--main/tests/UserInterfaceTests/Util.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/tests/UserInterfaceTests/Util.cs b/main/tests/UserInterfaceTests/Util.cs
index 4b4c437a64..2fbc191a18 100644
--- a/main/tests/UserInterfaceTests/Util.cs
+++ b/main/tests/UserInterfaceTests/Util.cs
@@ -46,6 +46,11 @@ namespace UserInterfaceTests
return new string (str.Select (c => invalids.Contains (c) ? replaceWith : c).ToArray ());
}
+ public static string ToBoldText (this string str)
+ {
+ return string.Format ("<b>{0}</b>", str);
+ }
+
public static FilePath CreateTmpDir (string hint = null)
{
var cwd = new FileInfo (Assembly.GetExecutingAssembly ().Location).DirectoryName;