From 78a80c37a7449004407b605131516d8db8091962 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Mon, 19 Aug 2013 19:53:31 +0200 Subject: [PATCH] Remove redundant prefixes from the CSS order test. (cherry-picked from e3584179fe919c59033e54f019a1511691d2c85b) --- test/unit/css.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/unit/css.js b/test/unit/css.js index 756bc1ed5..156bf9d77 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1055,17 +1055,7 @@ asyncTest( "Make sure initialized display value for disconnected nodes is correc // but it's the best that we can do. (function() { var style = document.createElement( "div" ).style, - prefixes = [ "Webkit", "O", "Moz", "ms" ], - exist = "order" in style, - i = 0; - - if ( !exist ) { - for ( ; i < prefixes.length; i++ ) { - if ( exist = prefixes[ i ] + "Order" in style ) { - break; - } - } - } + exist = "order" in style || "WebkitOrder" in style; if ( exist ) { test( "Don't append px to CSS \"order\" value (#14049)", 1, function() { -- 2.39.5