Skip to content

Commit

Permalink
Add test for jetheredge#331
Browse files Browse the repository at this point in the history
  • Loading branch information
xumix committed Apr 28, 2016
1 parent e008161 commit 1abac79
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SquishItAspNetMvcTest/Controllers/AutoBundlingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ public ActionResult Javascript()
return View();
}

public ActionResult JavascriptSection()
{
return View();
}

public ActionResult Css()
{
return View();
Expand Down
2 changes: 2 additions & 0 deletions SquishItAspNetMvcTest/SquishItAspNetMvcTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@
<Content Include="Views\Features\MinifyJsYUI.cshtml" />
<Content Include="Views\Features\RenderInline.cshtml" />
<Content Include="packages.config" />
<Content Include="Views\AutoBundling\JavascriptSection.cshtml" />
<Content Include="Views\Shared\_LayoutSection.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Preprocessors\Hogan.cshtml" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@using SquishIt.Mvc
@{
ViewBag.Title = "Auto-Bundle Js";
Layout = "~/Views/Shared/_LayoutSection.cshtml";
}

@{ Html.AddScriptResources("/assets/js/jquery_1.7.2.js", "/assets/js/minifyjs_test.js"); }
}
15 changes: 15 additions & 0 deletions SquishItAspNetMvcTest/Views/Shared/_LayoutSection.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@using SquishIt.Mvc
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title</title>
@RenderSection("Styles", false)
</head>

<body>
@Html.ScriptResourceLinks()
@RenderBody()
@RenderSection("JavaScript", false)
</body>
</html>
1 change: 1 addition & 0 deletions SquishItAspNetMvcTest/assets/js/minifyjs_test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$(function () {
$("#js-test-container").html("This text was placed here by javascript. If you see this, the test completed successfully.");
$("#js-test-section-container").html("This text was placed here by javascript. If you see this, the test completed successfully.");
});

0 comments on commit 1abac79

Please sign in to comment.