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 #399 from adobe/pflynn/css-utils-tests
Browse files Browse the repository at this point in the history
Re-enable big CSS suite for CSSUtils
  • Loading branch information
jasonsanjose committed Mar 4, 2012
2 parents e37fd7d + b33a12e commit e2d83bb
Show file tree
Hide file tree
Showing 10 changed files with 930 additions and 1,063 deletions.
8 changes: 4 additions & 4 deletions src/CSSUtils.js
Expand Up @@ -131,8 +131,8 @@ define(function (require, exports, module) {
*
* @param text {!String} CSS text to search
* @param selector {!String} selector to search for
* @return {Array.<Object>} Array of objects containing the start and end offsets for
* each matched selector.
* @return {Array.<{line:number, ruleEndLine:number}>} Array of objects containing the start
* and end line numbers (0-based, inclusive range) for each matched selector.
*/
function _findAllMatchingSelectorsInText(text, selector) {
var allSelectors = _extractAllSelectors(text);
Expand Down Expand Up @@ -186,8 +186,8 @@ define(function (require, exports, module) {
* .foo.bar {}
*
* @param {!String} selector The selector to match. This can be a tag selector, class selector or id selector
* @return {Array<Object>} Array of objects containing the source (FileEntry), lineStart (Number), and
* lineEnd (Number) for each matching rule.
* @return {Array<{source:FileEntry, lineStart:number, lineEnd:number}>} Array of objects containing the
* source file, start line, and end line (0-based, inclusive range) for each matching rule.
*/
function findMatchingRules(selector) {
var result = new $.Deferred(),
Expand Down
2 changes: 1 addition & 1 deletion test/SpecRunner.js
Expand Up @@ -23,10 +23,10 @@ define(function (require, exports, module) {
require("spec/Editor-test.js");
require("spec/ProjectManager-test.js");
require("spec/WorkingSetView-test.js");
require("spec/CSSUtils-test.js");
require("spec/KeyMap-test.js");
require("spec/FileIndexManager-test.js");
require("spec/CodeHintUtils-test.js");
require("spec/CSSUtils-test.js");

// Clean up preferencesKey
$(window).unload(function () {
Expand Down
Empty file.
1,025 changes: 0 additions & 1,025 deletions test/spec/CSSManager-test.js

This file was deleted.

958 changes: 925 additions & 33 deletions test/spec/CSSUtils-test.js

Large diffs are not rendered by default.

0 comments on commit e2d83bb

Please sign in to comment.