Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7758 from adobe/randy/specrunner-category-update
Browse files Browse the repository at this point in the history
Add Live Preview category to SpecRunner
  • Loading branch information
RaymondLim committed May 22, 2014
2 parents 9a9fef0 + 2d79d97 commit 4782457
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
9 changes: 8 additions & 1 deletion test/BootstrapReporterView.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,11 @@ pre {
/* De-emphasize source links to Jasmine framework code (vs. links to test spec & Brackets core code) */
.testframework-link {
opacity: 0.45;
}
}

@media (min-width: 728px) and (max-width: 1199px) {
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 800px;
}
}
3 changes: 2 additions & 1 deletion test/SpecRunner.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@
<li><a id="all" href="?suite=all">All</a></li>
<li><a id="unit" href="?suite=unit">Unit</a></li>
<li><a id="integration" href="?suite=integration">Integration</a></li>
<li><a id="livepreview" href="?suite=livepreview">Live&nbsp;Preview</a></li>
<li><a id="performance" href="?suite=performance">Performance</a></li>
<li><a id="extension" href="?suite=extension">Extensions</a></li>
<li><a id="reload" href="#">Reload</a></li>
<li><a id="show-dev-tools" href="#">Show Developer Tools</a></li>
<li><a id="show-dev-tools" href="#">Show&nbsp;Developer&nbsp;Tools</a></li>
</ul>
</div>
</div>
Expand Down
16 changes: 14 additions & 2 deletions test/spec/LiveDevelopment-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ define(function (require, exports, module) {

describe("Inspector", function () {

this.category = "integration";
this.category = "livepreview";

it("should return a ready socket on Inspector.connect and close the socket on Inspector.disconnect", function () {
var id = Math.floor(Math.random() * 100000),
Expand Down Expand Up @@ -232,6 +232,8 @@ define(function (require, exports, module) {

describe("URL Mapping", function () {

this.category = "livepreview";

it("should validate base urls", function () {
expect(PreferencesDialogs._validateBaseUrl("http://localhost"))
.toBe("");
Expand Down Expand Up @@ -264,6 +266,8 @@ define(function (require, exports, module) {

describe("HighlightAgent", function () {

this.category = "livepreview";

describe("Highlighting elements in browser from a CSS rule", function () {

var testDocument,
Expand Down Expand Up @@ -514,7 +518,7 @@ define(function (require, exports, module) {

describe("Live Development", function () {

this.category = "integration";
this.category = "livepreview";

beforeFirst(function () {
SpecRunnerUtils.createTempDirectory();
Expand Down Expand Up @@ -937,6 +941,9 @@ define(function (require, exports, module) {
});

describe("Servers", function () {

this.category = "livepreview";

// Define testing parameters, files do not need to exist on disk
// File paths used in tests:
// * file1 - file inside project
Expand Down Expand Up @@ -997,6 +1004,9 @@ define(function (require, exports, module) {
});

describe("Default HTML Document", function () {

this.category = "livepreview";

var brackets,
LiveDevelopment,
ProjectManager,
Expand Down Expand Up @@ -1030,6 +1040,7 @@ define(function (require, exports, module) {
}

describe("Find static page for Live Development", function () {

it("should return the same HTML document like the currently open document", function () {
var promise,
document,
Expand Down Expand Up @@ -1202,6 +1213,7 @@ define(function (require, exports, module) {
});

describe("Find dynamic page for Live Development", function () {

it("should return the same index.php document like the currently opened document", function () {
var promise,
document,
Expand Down
2 changes: 2 additions & 0 deletions test/spec/NodeConnection-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ define(function (require, exports, module) {

describe("Node Connection", function () {

this.category = "livepreview";

var _connectionsToAutoDisconnect = null;

function createConnection() {
Expand Down

0 comments on commit 4782457

Please sign in to comment.