Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable strict mode.

  • Loading branch information...
commit 45bf071f7c7e09cc86e48e9a36d2a33754ae4b9f 1 parent 15043ef
@XhmikosR XhmikosR authored
Showing with 134 additions and 5 deletions.
  1. +2 −1  .jshintrc
  2. +2 −0  Gruntfile.js
  3. +1 −0  demos/CSSLintDemo.htm
  4. +1 −0  src/cli/common.js
  5. +7 −0 src/cli/node.js
  6. +6 −0 src/cli/rhino.js
  7. +2 −1  src/cli/wsh.js
  8. +1 −0  src/core/CSSLint.js
  9. +8 −0 src/core/Reporter.js
  10. +3 −0  src/core/Util.js
  11. +1 −0  src/formatters/checkstyle-xml.js
  12. +4 −1 src/formatters/compact.js
  13. +3 −0  src/formatters/csslint-xml.js
  14. +3 −0  src/formatters/junit-xml.js
  15. +3 −0  src/formatters/lint-xml.js
  16. +3 −0  src/formatters/text.js
  17. +1 −0  src/rules/adjoining-classes.js
  18. +1 −0  src/rules/box-model.js
  19. +1 −0  src/rules/box-sizing.js
  20. +1 −0  src/rules/bulletproof-font-face.js
  21. +1 −0  src/rules/compatible-vendor-prefixes.js
  22. +1 −0  src/rules/display-property-grouping.js
  23. +1 −0  src/rules/duplicate-background-images.js
  24. +1 −0  src/rules/duplicate-properties.js
  25. +1 −0  src/rules/empty-rules.js
  26. +1 −0  src/rules/errors.js
  27. +1 −0  src/rules/fallback-colors.js
  28. +1 −0  src/rules/floats.js
  29. +1 −0  src/rules/font-faces.js
  30. +1 −0  src/rules/font-sizes.js
  31. +1 −0  src/rules/gradients.js
  32. +1 −0  src/rules/ids.js
  33. +1 −0  src/rules/import.js
  34. +1 −0  src/rules/important.js
  35. +1 −0  src/rules/known-properties.js
  36. +1 −0  src/rules/order-alphabetical.js
  37. +1 −0  src/rules/outline-none.js
  38. +1 −0  src/rules/overqualified-elements.js
  39. +1 −0  src/rules/qualified-headings.js
  40. +1 −0  src/rules/regex-selectors.js
  41. +1 −0  src/rules/rules-count.js
  42. +1 −0  src/rules/selector-max-approaching.js
  43. +1 −0  src/rules/selector-max.js
  44. +1 −0  src/rules/selector-newline.js
  45. +1 −0  src/rules/shorthand.js
  46. +1 −0  src/rules/star-property-hack.js
  47. +1 −0  src/rules/text-indent.js
  48. +1 −0  src/rules/underscore-property-hack.js
  49. +1 −0  src/rules/unique-headings.js
  50. +1 −0  src/rules/universal-selector.js
  51. +1 −0  src/rules/unqualified-attributes.js
  52. +1 −0  src/rules/vendor-prefix.js
  53. +1 −0  src/rules/zero-units.js
  54. +1 −1  src/worker/Worker.js
  55. +1 −0  tests/all-rules.js
  56. +1 −0  tests/core/CSSLint.js
  57. +1 −0  tests/core/Reporter.js
  58. +1 −0  tests/formatters/checkstyle-xml.js
  59. +1 −0  tests/formatters/compact.js
  60. +1 −0  tests/formatters/csslint-xml.js
  61. +1 −0  tests/formatters/junit-xml.js
  62. +1 −0  tests/formatters/lint-xml.js
  63. +1 −0  tests/formatters/text.js
  64. +1 −0  tests/rules/adjoining-classes.js
  65. +1 −0  tests/rules/box-model.js
  66. +1 −0  tests/rules/box-sizing.js
  67. +1 −0  tests/rules/bulletproof-font-face.js
  68. +1 −0  tests/rules/compatible-vendor-prefixes.js
  69. +1 −0  tests/rules/display-property-grouping.js
  70. +1 −0  tests/rules/duplicate-background-images.js
  71. +1 −0  tests/rules/duplicate-properties.js
  72. +1 −0  tests/rules/empty-rules.js
  73. +1 −0  tests/rules/errors.js
  74. +1 −0  tests/rules/fallback-colors.js
  75. +1 −0  tests/rules/floats.js
  76. +1 −0  tests/rules/font-faces.js
  77. +1 −0  tests/rules/font-sizes.js
  78. +1 −0  tests/rules/gradients.js
  79. +1 −0  tests/rules/ids.js
  80. +1 −0  tests/rules/import.js
  81. +1 −0  tests/rules/important.js
  82. +1 −0  tests/rules/known-properties.js
  83. +1 −0  tests/rules/order-alphabetical.js
  84. +1 −0  tests/rules/outline-none.js
  85. +1 −0  tests/rules/overqualified-elements.js
  86. +1 −0  tests/rules/qualified-headings.js
  87. +1 −0  tests/rules/regex-selectors.js
  88. +1 −0  tests/rules/selector-max-approaching.js
  89. +1 −0  tests/rules/selector-max.js
  90. +1 −1  tests/rules/selector-newline.js
  91. +1 −0  tests/rules/shorthand.js
  92. +1 −0  tests/rules/star-property-hack.js
  93. +1 −0  tests/rules/text-indent.js
  94. +1 −0  tests/rules/underscore-property-hack.js
  95. +1 −0  tests/rules/unique-headings.js
  96. +1 −0  tests/rules/universal-selector.js
  97. +1 −0  tests/rules/unqualified-attributes.js
  98. +1 −0  tests/rules/vendor-prefix.js
  99. +1 −0  tests/rules/zero-units.js
  100. +1 −0  tests/testrunner.htm
View
3  .jshintrc
@@ -11,8 +11,9 @@
"noempty": true,
"nonbsp": true,
"quotmark": "double",
- "unused": true,
+ "strict": true,
"undef": true,
+ "unused": true,
"globals": {
"CSSLint": true,
"YUITest": true
View
2  Gruntfile.js
@@ -1,5 +1,7 @@
/* jshint camelcase:false, evil:true, node:true */
+"use strict";
+
module.exports = function(grunt) {
// Project configuration.
View
1  demos/CSSLintDemo.htm
@@ -78,6 +78,7 @@
<div id="output"></div>
<script>
(function() {
+ "use strict";
document.body.onclick = function(event) {
event = event || window.event;
View
1  src/cli/common.js
@@ -6,6 +6,7 @@
/* exported cli */
function cli(api){
+ "use strict";
var globalOptions = {
"help" : { "format" : "", "description" : "Displays this information."},
View
7 src/cli/node.js
@@ -14,14 +14,17 @@ cli({
args: process.argv.slice(2),
print: function(message){
+ "use strict";
fs.writeSync(1, message + "\n");
},
quit: function(code){
+ "use strict";
process.exit(code || 0);
},
isDirectory: function(name){
+ "use strict";
try {
return fs.statSync(name).isDirectory();
} catch (ex) {
@@ -30,6 +33,7 @@ cli({
},
getFiles: function(dir){
+ "use strict";
var files = [];
try {
@@ -61,14 +65,17 @@ cli({
},
getWorkingDirectory: function() {
+ "use strict";
return process.cwd();
},
getFullPath: function(filename){
+ "use strict";
return path.resolve(process.cwd(), filename);
},
readFile: function(filename){
+ "use strict";
try {
return fs.readFileSync(filename, "utf-8");
} catch (ex) {
View
6 src/cli/rhino.js
@@ -8,16 +8,19 @@
importPackage(java.io);
cli({
+
args: Array.prototype.concat.call(arguments),
print: print,
quit: quit,
isDirectory: function(name){
+ "use strict";
var dir = new File(name);
return dir.isDirectory();
},
getFiles: function(dir){
+ "use strict";
var files = [];
function traverse(dir) {
@@ -37,14 +40,17 @@ cli({
},
getWorkingDirectory: function() {
+ "use strict";
return (new File(".")).getCanonicalPath();
},
getFullPath: function(filename){
+ "use strict";
return (new File(filename)).getCanonicalPath();
},
readFile: function(filename) {
+ "use strict";
try {
return readFile(filename);
} catch (ex) {
View
3  src/cli/wsh.js
@@ -8,6 +8,8 @@
/* global cli */
var wshapi = (function(){
+ "use strict";
+
var fso = new ActiveXObject("Scripting.FileSystemObject");
var shell = WScript.CreateObject("WScript.Shell");
var finalArgs = [], i, args = WScript.Arguments;
@@ -41,7 +43,6 @@ var wshapi = (function(){
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
- "use strict";
if (this === void 0 || this === null) {
throw new Error("unknown instance");
}
View
1  src/core/CSSLint.js
@@ -9,6 +9,7 @@
/* exported CSSLint */
var CSSLint = (function(){
+ "use strict";
var rules = [],
formatters = [],
View
8 src/core/Reporter.js
@@ -8,6 +8,7 @@
* they are errors or warnings.
*/
function Reporter(lines, ruleset){
+ "use strict";
/**
* List of messages being reported.
@@ -54,6 +55,7 @@ Reporter.prototype = {
* @method error
*/
error: function(message, line, col, rule){
+ "use strict";
this.messages.push({
type : "error",
line : line,
@@ -74,6 +76,7 @@ Reporter.prototype = {
* @deprecated Use report instead.
*/
warn: function(message, line, col, rule){
+ "use strict";
this.report(message, line, col, rule);
},
@@ -86,6 +89,7 @@ Reporter.prototype = {
* @method report
*/
report: function(message, line, col, rule){
+ "use strict";
this.messages.push({
type : this.ruleset[rule.id] === 2 ? "error" : "warning",
line : line,
@@ -105,6 +109,7 @@ Reporter.prototype = {
* @method info
*/
info: function(message, line, col, rule){
+ "use strict";
this.messages.push({
type : "info",
line : line,
@@ -122,6 +127,7 @@ Reporter.prototype = {
* @method rollupError
*/
rollupError: function(message, rule){
+ "use strict";
this.messages.push({
type : "error",
rollup : true,
@@ -137,6 +143,7 @@ Reporter.prototype = {
* @method rollupWarn
*/
rollupWarn: function(message, rule){
+ "use strict";
this.messages.push({
type : "warning",
rollup : true,
@@ -152,6 +159,7 @@ Reporter.prototype = {
* @method stat
*/
stat: function(name, value){
+ "use strict";
this.stats[name] = value;
}
};
View
3  src/core/Util.js
@@ -11,6 +11,7 @@ CSSLint.Util = {
* @return {Object} The receiver
*/
mix: function(receiver, supplier){
+ "use strict";
var prop;
for (prop in supplier){
@@ -29,6 +30,7 @@ CSSLint.Util = {
* @return {int} The index of the value if found, -1 if not.
*/
indexOf: function(values, value){
+ "use strict";
if (values.indexOf){
return values.indexOf(value);
} else {
@@ -48,6 +50,7 @@ CSSLint.Util = {
* @return {void}
*/
forEach: function(values, func) {
+ "use strict";
if (values.forEach){
return values.forEach(func);
} else {
View
1  src/formatters/checkstyle-xml.js
@@ -1,4 +1,5 @@
(function() {
+ "use strict";
/**
* Replace special characters before write to output.
View
5 src/formatters/compact.js
@@ -8,6 +8,7 @@ CSSLint.addFormatter({
* @return {String} to prepend before all results
*/
startFormat: function() {
+ "use strict";
return "";
},
@@ -16,6 +17,7 @@ CSSLint.addFormatter({
* @return {String} to append after all results
*/
endFormat: function() {
+ "use strict";
return "";
},
@@ -27,6 +29,7 @@ CSSLint.addFormatter({
* @return {String} output for results
*/
formatResults: function(results, filename, options) {
+ "use strict";
var messages = results.messages,
output = "";
options = options || {};
@@ -41,7 +44,7 @@ CSSLint.addFormatter({
};
if (messages.length === 0) {
- return options.quiet ? "" : filename + ": Lint Free!";
+ return options.quiet ? "" : filename + ": Lint Free!";
}
CSSLint.Util.forEach(messages, function(message) {
View
3  src/formatters/csslint-xml.js
@@ -8,6 +8,7 @@ CSSLint.addFormatter({
* @return {String} to prepend before all results
*/
startFormat: function(){
+ "use strict";
return "<?xml version=\"1.0\" encoding=\"utf-8\"?><csslint>";
},
@@ -16,6 +17,7 @@ CSSLint.addFormatter({
* @return {String} to append after all results
*/
endFormat: function(){
+ "use strict";
return "</csslint>";
},
@@ -27,6 +29,7 @@ CSSLint.addFormatter({
* @return {String} output for results
*/
formatResults: function(results, filename/*, options*/) {
+ "use strict";
var messages = results.messages,
output = [];
View
3  src/formatters/junit-xml.js
@@ -8,6 +8,7 @@ CSSLint.addFormatter({
* @return {String} to prepend before all results
*/
startFormat: function(){
+ "use strict";
return "<?xml version=\"1.0\" encoding=\"utf-8\"?><testsuites>";
},
@@ -16,6 +17,7 @@ CSSLint.addFormatter({
* @return {String} to append after all results
*/
endFormat: function() {
+ "use strict";
return "</testsuites>";
},
@@ -27,6 +29,7 @@ CSSLint.addFormatter({
* @return {String} output for results
*/
formatResults: function(results, filename/*, options*/) {
+ "use strict";
var messages = results.messages,
output = [],
View
3  src/formatters/lint-xml.js
@@ -8,6 +8,7 @@ CSSLint.addFormatter({
* @return {String} to prepend before all results
*/
startFormat: function(){
+ "use strict";
return "<?xml version=\"1.0\" encoding=\"utf-8\"?><lint>";
},
@@ -16,6 +17,7 @@ CSSLint.addFormatter({
* @return {String} to append after all results
*/
endFormat: function(){
+ "use strict";
return "</lint>";
},
@@ -27,6 +29,7 @@ CSSLint.addFormatter({
* @return {String} output for results
*/
formatResults: function(results, filename/*, options*/) {
+ "use strict";
var messages = results.messages,
output = [];
View
3  src/formatters/text.js
@@ -8,6 +8,7 @@ CSSLint.addFormatter({
* @return {String} to prepend before all results
*/
startFormat: function() {
+ "use strict";
return "";
},
@@ -16,6 +17,7 @@ CSSLint.addFormatter({
* @return {String} to append after all results
*/
endFormat: function() {
+ "use strict";
return "";
},
@@ -27,6 +29,7 @@ CSSLint.addFormatter({
* @return {String} output for results
*/
formatResults: function(results, filename, options) {
+ "use strict";
var messages = results.messages,
output = "";
options = options || {};
View
1  src/rules/adjoining-classes.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("startrule", function(event){
var selectors = event.selectors,
View
1  src/rules/box-model.js
@@ -11,6 +11,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
widthProperties = {
border: 1,
View
1  src/rules/box-sizing.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("property", function(event){
View
1  src/rules/bulletproof-font-face.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
fontFaceRule = false,
firstSrc = true,
View
1  src/rules/compatible-vendor-prefixes.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function (parser, reporter) {
+ "use strict";
var rule = this,
compatiblePrefixes,
properties,
View
1  src/rules/display-property-grouping.js
@@ -16,6 +16,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
var propertiesToCheck = {
View
1  src/rules/duplicate-background-images.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
stack = {};
View
1  src/rules/duplicate-properties.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
properties,
lastProperty;
View
1  src/rules/empty-rules.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
count = 0;
View
1  src/rules/errors.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("error", function(event){
View
1  src/rules/fallback-colors.js
@@ -8,6 +8,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
lastProperty,
propertiesToCheck = {
View
1  src/rules/floats.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
var count = 0;
View
1  src/rules/font-faces.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
count = 0;
View
1  src/rules/font-sizes.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
count = 0;
View
1  src/rules/gradients.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
gradients;
View
1  src/rules/ids.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("startrule", function(event){
var selectors = event.selectors,
View
1  src/rules/import.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("import", function(event){
View
1  src/rules/important.js
@@ -14,6 +14,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
count = 0;
View
1  src/rules/known-properties.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("property", function(event){
View
1  src/rules/order-alphabetical.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
properties;
View
1  src/rules/outline-none.js
@@ -14,6 +14,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
lastRule;
View
1  src/rules/overqualified-elements.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
classes = {};
View
1  src/rules/qualified-headings.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("startrule", function(event){
View
1  src/rules/regex-selectors.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("startrule", function(event){
View
1  src/rules/rules-count.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var count = 0;
//count each rule
View
1  src/rules/selector-max-approaching.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter) {
+ "use strict";
var rule = this, count = 0;
parser.addListener("startrule", function(event) {
View
1  src/rules/selector-max.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this, count = 0;
parser.addListener("startrule", function(event) {
View
1  src/rules/selector-newline.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter) {
+ "use strict";
var rule = this;
parser.addListener("startrule", function(event) {
View
1  src/rules/shorthand.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
prop, i, len,
propertiesToCheck = {},
View
1  src/rules/star-property-hack.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
//check if property name starts with "*"
View
1  src/rules/text-indent.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
textIndent,
direction;
View
1  src/rules/underscore-property-hack.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
//check if property name starts with "_"
View
1  src/rules/unique-headings.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
var headings = {
View
1  src/rules/universal-selector.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("startrule", function(event){
View
1  src/rules/unqualified-attributes.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
parser.addListener("startrule", function(event){
View
1  src/rules/vendor-prefix.js
@@ -13,6 +13,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this,
properties,
num,
View
1  src/rules/zero-units.js
@@ -12,6 +12,7 @@ CSSLint.addRule({
//initialization
init: function(parser, reporter){
+ "use strict";
var rule = this;
//count how many times "float" is used
View
2  src/worker/Worker.js
@@ -4,7 +4,7 @@
/*global self, JSON*/
//message indicates to start linting
self.onmessage = function(event){
-
+ "use strict";
var data = event.data,
message,
text,
View
1  tests/all-rules.js
@@ -11,6 +11,7 @@
/*jshint loopfunc: true */
(function(){
+ "use strict";
var Assert = YUITest.Assert,
suite = new YUITest.TestSuite("General Tests for all Rules"),
rules = CSSLint.getRules(),
View
1  tests/core/CSSLint.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/core/Reporter.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/formatters/checkstyle-xml.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/formatters/compact.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/formatters/csslint-xml.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/formatters/junit-xml.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/formatters/lint-xml.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/formatters/text.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/adjoining-classes.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/box-model.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/box-sizing.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/bulletproof-font-face.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/compatible-vendor-prefixes.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/display-property-grouping.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/duplicate-background-images.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/duplicate-properties.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/empty-rules.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/errors.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/fallback-colors.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/floats.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/font-faces.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/font-sizes.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/gradients.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/ids.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/import.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/important.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/known-properties.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/order-alphabetical.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/outline-none.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/overqualified-elements.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/qualified-headings.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/regex-selectors.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/selector-max-approaching.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert, i, j, css1 = "", css2 = "", css3 = "", css4 = "";
// create css1, which has only 4095 rules and 4095 selectors
View
1  tests/rules/selector-max.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert, i, j, css1 = "", css2 = "", css3 = "", css4 = "";
// create css1, which has only 4095 rules and 4095 selectors
View
2  tests/rules/selector-newline.js
@@ -1,5 +1,5 @@
(function () {
-
+ "use strict";
var ruleId = "selector-newline", expectWarning, expectPass;
expectWarning = function (ruleset, expectedMessage) {
View
1  tests/rules/shorthand.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/star-property-hack.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/text-indent.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/underscore-property-hack.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/unique-headings.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/universal-selector.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/unqualified-attributes.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/vendor-prefix.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/rules/zero-units.js
@@ -1,4 +1,5 @@
(function(){
+ "use strict";
var Assert = YUITest.Assert;
YUITest.TestRunner.add(new YUITest.TestCase({
View
1  tests/testrunner.htm
@@ -28,6 +28,7 @@
<script >
(function(){
+ "use strict";
//some helpful variables
var runButton = document.getElementById("run"),
Please sign in to comment.
Something went wrong with that request. Please try again.