Skip to content
Browse files

updated fluent web controls with label style

  • Loading branch information...
1 parent e75a246 commit 21a6a5f302f3ba32e6c44856928f46ff148ab447 @shashankshetty shashankshetty committed Jan 25, 2014
View
4 src/FluentWebControls.Tests/CheckBoxDataTest.cs
@@ -57,7 +57,7 @@ public void Should_return_HTML_code_representing_a_checkbox_field_with_its_value
[TestFixture]
public class When_asked_to_create_a_checkbox_with_label_in_the_left
{
- private const string HtmlText = "<label for='value' style='float:left;text-align:right'>Label</label><input type='checkbox' id='value' name='value' value='true'/>";
+ private const string HtmlText = "<label for='value'>Label</label><input type='checkbox' id='value' name='value' value='true'/>";
[Test]
public void Should_return_HTML_code_representing_a_checkbox_field_with_its_value_embedded_in_it()
@@ -84,7 +84,7 @@ private static void SetLabel(CheckBoxData checkBoxData)
[TestFixture]
public class When_asked_to_create_a_checkbox_with_label_in_the_right
{
- private const string HtmlText = "<label style='float:left;text-align:right'>&nbsp;</label><input type='checkbox' id='value' name='value' value='true'/><label for='value'>Label</label>";
+ private const string HtmlText = "<label>&nbsp;</label><input type='checkbox' id='value' name='value' value='true'/><label for='value'>Label</label>";
[Test]
public void Should_return_HTML_code_representing_a_checkbox_field_with_its_value_embedded_in_it()
View
6 src/FluentWebControls.Tests/LabelDataTest.cs
@@ -60,7 +60,7 @@ protected override string ForId
protected override string HtmlText
{
- get { return "<label for='value' style='float:left;text-align:right'></label>"; }
+ get { return "<label for='value'></label>"; }
}
protected override string Text
@@ -88,7 +88,7 @@ protected override string ForId
protected override string HtmlText
{
- get { return "<label for='value' style='float:left;text-align:right'>value</label>"; }
+ get { return "<label for='value'>value</label>"; }
}
protected override string Text
@@ -113,7 +113,7 @@ protected override string ForId
protected override string HtmlText
{
- get { return "<label for='_value' style='float:left;text-align:right'>10</label>"; }
+ get { return "<label for='_value'>10</label>"; }
}
protected override string Text
View
6 src/FluentWebControls.Tests/LabelTest.cs
@@ -28,7 +28,7 @@ public void Should_return_html_code_representing_a_label_with_its_value_embedded
// ReSharper restore ConvertToConstant.Local
// ReSharper restore ConvertToConstant
var labelData = Label.For(() => value);
- labelData.ToString().ShouldBeEqualTo("<label for='value' style='float:left;text-align:right'></label>");
+ labelData.ToString().ShouldBeEqualTo("<label for='value'></label>");
}
}
@@ -40,7 +40,7 @@ public void Should_return_html_code_representing_a_label_with_its_value_embedded
{
int? value = 10;
var labelData = Label.For(() => value);
- labelData.ToString().ShouldBeEqualTo("<label for='value' style='float:left;text-align:right'></label>");
+ labelData.ToString().ShouldBeEqualTo("<label for='value'></label>");
}
}
@@ -54,7 +54,7 @@ public void Should_return_html_code_representing_a_label_with_its_value_embedded
var value = "Bar";
// ReSharper restore ConvertToConstant.Local
var labelData = Label.For(() => value);
- labelData.ToString().ShouldBeEqualTo("<label for='value' style='float:left;text-align:right'></label>");
+ labelData.ToString().ShouldBeEqualTo("<label for='value'></label>");
}
}
}
View
4 src/FluentWebControls.Tests/RadioButtonDataTest.cs
@@ -56,7 +56,7 @@ public void Should_return_HTML_code_representing_a_radio_field_with_its_value_em
[TestFixture]
public class When_asked_to_create_a_radio_with_label_in_the_left
{
- private const string HtmlText = "<label for='value' style='float:left;text-align:right'>Label</label><input type='radio' id='value' name='value' value='true'/>";
+ private const string HtmlText = "<label for='value'>Label</label><input type='radio' id='value' name='value' value='true'/>";
[Test]
public void Should_return_HTML_code_representing_a_radio_field_with_its_value_embedded_in_it()
@@ -82,7 +82,7 @@ private static void SetLabel(RadioButtonData checkBoxData)
[TestFixture]
public class When_asked_to_create_a_radio_with_label_in_the_right
{
- private const string HtmlText = "<label style='float:left;text-align:right'>&nbsp;</label><input type='radio' id='value' name='value' value='true'/><label for='value'>Label</label>";
+ private const string HtmlText = "<label>&nbsp;</label><input type='radio' id='value' name='value' value='true'/><label for='value'>Label</label>";
[Test]
public void Should_return_HTML_code_representing_a_radio_field_with_its_value_embedded_in_it()
View
1 src/FluentWebControls/LabelData.cs
@@ -19,7 +19,6 @@ public class LabelData
{
public LabelData()
{
- Style = "float:left;text-align:right";
}
public LabelData(string forId)

0 comments on commit 21a6a5f

Please sign in to comment.
Something went wrong with that request. Please try again.