aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2011-04-12 00:54:12 -0400
committerjeresig <jeresig@gmail.com>2011-04-12 00:54:12 -0400
commit312df0441b16981dd697d74fcbc1e1f212b47b7e (patch)
tree109c8367c9bdf7c98534e999acf7c744dd8d77d2
parent0ff4c69929572e107624139851add5c9a5ec28c6 (diff)
downloadjquery-312df0441b16981dd697d74fcbc1e1f212b47b7e.tar.gz
jquery-312df0441b16981dd697d74fcbc1e1f212b47b7e.zip
Revert "QUnit test for overriding important css declarations, references #4427"
This reverts commit 1299e89dcd803ee0ed48622c716dc3d4c8567cb7. Conflicts: test/unit/css.js
-rw-r--r--test/data/testsuite.css4
-rw-r--r--test/unit/css.js15
2 files changed, 0 insertions, 19 deletions
diff --git a/test/data/testsuite.css b/test/data/testsuite.css
index d029b8716..029006810 100644
--- a/test/data/testsuite.css
+++ b/test/data/testsuite.css
@@ -109,7 +109,3 @@ div#show-tests * { display: none; }
#nothiddendiv { font-size: 16px; }
#nothiddendivchild.em { font-size: 2em; }
#nothiddendivchild.prct { font-size: 150%; }
-
-div.isimportant {
- background-color: rgb(255, 255, 255) !important;
-}
diff --git a/test/unit/css.js b/test/unit/css.js
index cd2019fe2..ff45762c8 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -381,21 +381,6 @@ test("marginRight computed style (bug #3333)", function() {
equals($div.css("marginRight"), "0px", "marginRight correctly calculated with a width and display block");
});
-test("$().css override !important css declarations (bug #4427)", function(){
- expect(4);
- var div = jQuery("<div/>", {
- "class": "isimportant" // background-color: #fff !important
- });
- div.css("backgroundColor", "rgb(0, 255, 0)");
- equals( div.css("backgroundColor"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
- equals( div.css("background-color"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
-
- div.css("background-color", "rgb(0, 255, 0)");
- equals( div.css("backgroundColor"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
- equals( div.css("background-color"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
-
-});
-
test("jQuery.cssProps behavior, (bug #8402)", function() {
var div = jQuery( "<div>" ).appendTo(document.body).css({
position: "absolute",