Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: chrome/test/data/extensions/api_test/css_l10n/test_extension_id.js

Issue 7552028: Injected CSS localization fix (see bug no.) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Changed browser_tests for scalability and added insertCSS browser test. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 var gotReplaced = true;
Nebojša Ćirić 2011/08/16 15:04:54 Maybe put a comment in each .js as to what they do
adriansc 2011/08/16 17:07:04 Done.
2
3 var rules = getMatchedCSSRules(document.getElementById('bodyId'));
4 if (rules == null) {
5 document.title = 'no CSS rules injected';
6 } else {
7 for (var i = 0; i < rules.length; ++i) {
8 if (rules.item(i).cssText.indexOf('extension_id') != -1) {
9 gotReplaced = false;
10 }
11 }
12 }
13
14 if (gotReplaced == true) {
15 document.title = 'passed';
16 } else {
17 document.title = 'failed';
18 }
19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698