mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Remove uses of X-UA-Compatible meta tag (#177739)
* Remove uses of `X-UA-Compatible` meta tag We no longer support IE Mainly removing this from the webview html but figured we should remove the other references to it as well * Update tests * Fix test
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<title>Manage Built-in Extensions</title>
|
<title>Manage Built-in Extensions</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<script src="browser-main.js"></script>
|
<script src="browser-main.js"></script>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head id='headID'>
|
<head id='headID'>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<title>Strada </title>
|
<title>Strada </title>
|
||||||
<link href="site.css" rel="stylesheet" type="text/css" />
|
<link href="site.css" rel="stylesheet" type="text/css" />
|
||||||
<script src="jquery-1.4.1.js"></script>
|
<script src="jquery-1.4.1.js"></script>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head id='headID'>
|
<head id='headID'>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<title>Strada </title>
|
<title>Strada </title>
|
||||||
<link href="site.css" rel="stylesheet" type="text/css" />
|
<link href="site.css" rel="stylesheet" type="text/css" />
|
||||||
<script src="jquery-1.4.1.js"></script>
|
<script src="jquery-1.4.1.js"></script>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head id='headID'>
|
<head id='headID'>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<title>Strada </title>
|
<title>Strada </title>
|
||||||
<link href="site.css" rel="stylesheet" type="text/css" />
|
<link href="site.css" rel="stylesheet" type="text/css" />
|
||||||
<script src="jquery-1.4.1.js"></script>
|
<script src="jquery-1.4.1.js"></script>
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
||||||
<title>Fake</title>
|
<title>Fake</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
<!-- Disable pinch zooming -->
|
<!-- Disable pinch zooming -->
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
||||||
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="margin: 0; overflow: hidden; width: 100%; height: 100%" role="document">
|
<body style="margin: 0; overflow: hidden; width: 100%; height: 100%" role="document">
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
<!-- Disable pinch zooming -->
|
<!-- Disable pinch zooming -->
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
||||||
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="margin: 0; overflow: hidden; width: 100%; height: 100%" role="document">
|
<body style="margin: 0; overflow: hidden; width: 100%; height: 100%" role="document">
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head id='headID'>
|
<head id='headID'>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<title>Strada </title>
|
<title>Strada </title>
|
||||||
<link href="site.css" rel="stylesheet" type="text/css" />
|
<link href="site.css" rel="stylesheet" type="text/css" />
|
||||||
<script src="jquery-1.4.1.js"></script>
|
<script src="jquery-1.4.1.js"></script>
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ flakySuite('TextSearch-integration', function () {
|
|||||||
contentPattern: { pattern: 'e' }
|
contentPattern: { pattern: 'e' }
|
||||||
};
|
};
|
||||||
|
|
||||||
return doSearchTest(config, 788);
|
return doSearchTest(config, 781);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Text: e (with excludes)', () => {
|
test('Text: e (with excludes)', () => {
|
||||||
@@ -167,7 +167,7 @@ flakySuite('TextSearch-integration', function () {
|
|||||||
excludePattern: { '**/examples': true }
|
excludePattern: { '**/examples': true }
|
||||||
};
|
};
|
||||||
|
|
||||||
return doSearchTest(config, 394);
|
return doSearchTest(config, 387);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Text: e (with includes)', () => {
|
test('Text: e (with includes)', () => {
|
||||||
@@ -344,12 +344,12 @@ flakySuite('TextSearch-integration', function () {
|
|||||||
|
|
||||||
return doSearchTest(config, 4).then(results => {
|
return doSearchTest(config, 4).then(results => {
|
||||||
assert.strictEqual(results.length, 4);
|
assert.strictEqual(results.length, 4);
|
||||||
assert.strictEqual((<ITextSearchContext>results[0].results![0]).lineNumber, 25);
|
assert.strictEqual((<ITextSearchContext>results[0].results![0]).lineNumber, 24);
|
||||||
assert.strictEqual((<ITextSearchContext>results[0].results![0]).text, ' compiler.addUnit(prog,"input.ts");');
|
assert.strictEqual((<ITextSearchContext>results[0].results![0]).text, ' compiler.addUnit(prog,"input.ts");');
|
||||||
// assert.strictEqual((<ITextSearchMatch>results[1].results[0]).preview.text, ' compiler.typeCheck();\n'); // See https://github.com/BurntSushi/ripgrep/issues/1095
|
// assert.strictEqual((<ITextSearchMatch>results[1].results[0]).preview.text, ' compiler.typeCheck();\n'); // See https://github.com/BurntSushi/ripgrep/issues/1095
|
||||||
assert.strictEqual((<ITextSearchContext>results[2].results![0]).lineNumber, 27);
|
assert.strictEqual((<ITextSearchContext>results[2].results![0]).lineNumber, 26);
|
||||||
assert.strictEqual((<ITextSearchContext>results[2].results![0]).text, ' compiler.emit();');
|
assert.strictEqual((<ITextSearchContext>results[2].results![0]).text, ' compiler.emit();');
|
||||||
assert.strictEqual((<ITextSearchContext>results[3].results![0]).lineNumber, 28);
|
assert.strictEqual((<ITextSearchContext>results[3].results![0]).lineNumber, 27);
|
||||||
assert.strictEqual((<ITextSearchContext>results[3].results![0]).text, '');
|
assert.strictEqual((<ITextSearchContext>results[3].results![0]).text, '');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user