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

Unified Diff: grit/testdata/script.html

Issue 1438403002: Remove contents of grit's git-svn-mirror repository. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « grit/testdata/resource_ids ('k') | grit/testdata/searchbox.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/testdata/script.html
diff --git a/grit/testdata/script.html b/grit/testdata/script.html
deleted file mode 100644
index f177d9c30e4219a8969093df56b1166a82e05cb9..0000000000000000000000000000000000000000
--- a/grit/testdata/script.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<script>
-function run(n,cut){
- var out = "", str = "abcdefghijklmnopqrstuvwxyz 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ,./:;'\"()*!?-_@[]{}#%`+=|\\>";
- n.innerHTML = 'aa';
-
- var base = n.scrollWidth;
- for(var i=0;i<str.length;i++) {
- n.innerHTML = 'a'+str.charAt(i)+'a';
- out += str.charAt(i) + (n.scrollWidth-base) +";";
-
- if(cut && !i && (n.scrollWidth-base == cut)) {
- return '\x02'+"0;";
- }
- }
- // extra cases for literals
- n.innerHTML = 'a&lt;a';
- out += '<' + (n.scrollWidth-base) +";";
- n.innerHTML = 'a&amp;a';
- out += '&' + (n.scrollWidth-base) +";";
-
- var base_height = n.scrollHeight;
- n.innerHTML += '<br>a';
- out += '\x01' + (n.scrollHeight-base_height) +";";
-
- return out;
-}
-
-function TEST_WIDTH() {
- var n = document.getElementById('test');
- var out = run(n[$~CUT~$]);
- if (out.length>4){
- n.style.fontWeight='bold';
- out += run(n);
- }
- n.outerHTML = "";
- (new Image()).src="[$~SETWIDTH~$]?src=[COMPONENT]&data="+escape(out).replace(/\+/g,"%2B");
-}
-</script>
« no previous file with comments | « grit/testdata/resource_ids ('k') | grit/testdata/searchbox.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698