kopia lustrzana https://github.com/c9/core
Merge pull request +11848 from c9/more-robust-tests
make tests more robustpull/248/head
commit
9976f95f03
|
@ -67,7 +67,7 @@
|
|||
"c9.ide.language.javascript.tern": "#45e5f5b0e5",
|
||||
"c9.ide.language.javascript.infer": "#0561c69d67",
|
||||
"c9.ide.language.jsonalyzer": "#243e11bd42",
|
||||
"c9.ide.collab": "#e2411fc12b",
|
||||
"c9.ide.collab": "#4b93a497cd",
|
||||
"c9.ide.local": "#a6e689e33b",
|
||||
"c9.ide.find": "#e33fbaed2f",
|
||||
"c9.ide.find.infiles": "#c3bf17286d",
|
||||
|
@ -108,7 +108,7 @@
|
|||
"c9.ide.run": "#f03e4b018e",
|
||||
"c9.ide.run.build": "#0598fff697",
|
||||
"c9.ide.run.debug.xdebug": "#a1b39e0ac4",
|
||||
"c9.ide.save": "#1ab1840513",
|
||||
"c9.ide.save": "#f8aaf93ea1",
|
||||
"c9.ide.scm": "#ca3c94b84f",
|
||||
"c9.ide.terminal.monitor": "#a0d1f02991",
|
||||
"c9.ide.test": "#a282ec1619",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/*global describe it before after beforeEach afterEach define*/
|
||||
"use strict";
|
||||
"use server";
|
||||
"use blacklist";
|
||||
|
||||
require("c9/inline-mocha")(module);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
|
||||
this is bad php, obviously
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai)
|
|||
|
||||
describe('proc', function() {
|
||||
describe('spawn()', function() {
|
||||
this.timeout(10000);
|
||||
this.timeout(4000);
|
||||
|
||||
it("should spawn a child process", function(done) {
|
||||
var args = ["-e", "process.stdin.pipe(process.stdout);try{process.stdin.resume()}catch(e) {};"];
|
||||
|
@ -108,7 +108,7 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai)
|
|||
this.timeout(30000);
|
||||
|
||||
it("Terminal Test", function(done) {
|
||||
var look = /\]0;.*\-\-color=auto/;
|
||||
var look = "--color=auto";
|
||||
|
||||
var args = ["-is"];
|
||||
proc.pty("bash", {
|
||||
|
@ -124,14 +124,13 @@ require(["lib/architect/architect", "lib/chai/chai"], function (architect, chai)
|
|||
var hadRows = false;
|
||||
|
||||
pty.on("data", function(data) {
|
||||
|
||||
if (typeof data == "object" && data.rows) {
|
||||
expect(data).property("rows").is.equal(80);
|
||||
expect(data).property("cols").is.equal(80);
|
||||
hadRows = true;
|
||||
} else {
|
||||
stdout.push(data);
|
||||
if (hadRows && stdout.join("").match(look) > -1)
|
||||
if (hadRows && stdout.join("").indexOf(look) > -1)
|
||||
pty.kill();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -431,7 +431,7 @@ define(function(require, module, exports) {
|
|||
*/
|
||||
get backgroundColor(){ return bg },
|
||||
set backgroundColor(v) {
|
||||
bg = v;
|
||||
bg = v || "";
|
||||
if (!rule)
|
||||
return initStyleSheet(fg, bg);
|
||||
ui.setStyleRule(rule, "background-color", bg, stylesheet);
|
||||
|
|
Ładowanie…
Reference in New Issue