function authorOriginShouldSucceed() {
        var injectDetails = {};
        injectDetails.code = '#author {' +
                             ' color: blue !important;' +
                             ' background-color: white !important;' +
                             '}';
        injectDetails.cssOrigin = 'author';
        chrome.tabs.insertCSS(tabId, injectDetails,
                              chrome.test.callbackPass(function() {
          chrome.tabs.sendMessage(tabId, { id: 'author' },
                                  chrome.test.callbackPass(function(response) {
            chrome.test.assertEq('rgb(0, 0, 255)', response.color);
            // !important rules in author style sheets do not override inline
            // !important rules.
            chrome.test.assertEq('rgb(0, 0, 0)', response.backgroundColor);
          }));
        }));
      }
// element on the page for each test.
element on the page for each test.
element on the page for each test .
function authorOriginShouldSucceed() {
        var injectDetails = {};
        injectDetails.code = '#author {' +
                             ' color: blue !important;' +
                             ' background-color: white !important;' +
                             '}';
        injectDetails.cssOrigin = 'author';
        chrome.tabs.insertCSS(tabId, injectDetails,
                              chrome.test.callbackPass(function() {
          chrome.tabs.sendMessage(tabId, { id: 'author' },
                                  chrome.test.callbackPass(function(response) {
            chrome.test.assertEq('rgb(0, 0, 255)', response.color);
            chrome.test.assertEq('rgb(0, 0, 0)', response.backgroundColor);
          }));
        }));
      }
function authorOriginShouldSucceed ( ) { var injectDetails = { } ; injectDetails . code = '#author {' + ' color: blue !important;' + ' background-color: white !important;' + '}' ; injectDetails . cssOrigin = 'author' ; chrome . tabs . insertCSS ( tabId , injectDetails , chrome . test . callbackPass ( function ( ) { chrome . tabs . sendMessage ( tabId , { id : 'author' } , chrome . test . callbackPass ( function ( response ) { chrome . test . assertEq ( 'rgb(0, 0, 255)' , response . color ) ; chrome . test . assertEq ( 'rgb(0, 0, 0)' , response . backgroundColor ) ; } ) ) ; } ) ) ; }
element on the page for each test.
element on the page for each test .
// !important rules in author style sheets do not override inline // !important rules.