Skip to content

Commit

Permalink
[Storage] Update polyfill to fix the failed browser tests in IE (Azur…
Browse files Browse the repository at this point in the history
…e#5727)

* update polyfill

* IE -> ChromeHeadless
  • Loading branch information
HarshaNalluru authored Oct 22, 2019
1 parent 84fd6d5 commit 2158818
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions sdk/storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ This library depends on following ES features which need external polyfills load
- `String.prototype.repeat`
- `String.prototype.includes`
- `Array.prototype.includes`
- `Object.assign`
- `Object.keys` (Override IE11's `Object.keys` with ES6 polyfill forcely to enable [ES6 behavior](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Notes))
- `Symbol`

Expand Down
1 change: 1 addition & 0 deletions sdk/storage/storage-blob/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
- (with proxyURI) `UseDevelopmentStorage=true;DevelopmentStorageProxyUri=proxyURI`
- [Breaking] `encrypted` attribute is removed from `BlobMetadata` interface. [PR #5612](https://github.com/Azure/azure-sdk-for-js/pull/5612)
- [Breaking] Return type of `downloadToBuffer` helper method on `BlobClient` is changed to `Promise<Buffer>` from `Promise<void>` [PR #5624](https://github.com/Azure/azure-sdk-for-js/pull/5624)
- [Breaking] IE11 needs `Object.assign` polyfill loaded.

## 2019.10 12.0.0-preview.4

Expand Down
1 change: 1 addition & 0 deletions sdk/storage/storage-blob/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ This library depends on following ES features which need external polyfills load
- `String.prototype.repeat`
- `String.prototype.includes`
- `Array.prototype.includes`
- `Object.assign`
- `Object.keys` (Override IE11's `Object.keys` with ES6 polyfill forcely to enable [ES6 behavior](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Notes))
- `Symbol`

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-blob/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
// polyfill service supporting IE11 missing features
// Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys
"https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys|always",
// Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys
"https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys|always",
"dist-test/index.browser.js",
"recordings/browsers/**/*.json"
],
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/samples/browserSamples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- Uncomment the following script tag to include polyfill to run the sample in IE11 -->
<!--
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys|always"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys|always"></script>
-->
<!-- Import browser bundle `azure-storage-blob.js` or `azure-storage-blob.min.js`-->
<script src="./azure-storage-blob.js"></script>
Expand Down
1 change: 1 addition & 0 deletions sdk/storage/storage-file/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- [Breaking] Appropriate attribute renames in all the interfaces [PR #5610](https://github.com/Azure/azure-sdk-for-js/pull/5610)
- Example - `nextMarker` -> `continuationToken`, `HTTPClient` -> `HttpClient`, `permission` -> `permissions`, `parallelism` -> `concurrency`
- [Breaking] `forceCloseHandlesSegment` is not exposed from the library in favour of the new method `forceCloseAllHandles` on `FileClient` and `DirectoryClient`. [PR #5620](https://github.com/Azure/azure-sdk-for-js/pull/5620)
- [Breaking] IE11 needs `Object.assign` polyfill loaded.

## 2019.10 12.0.0-preview.4

Expand Down
1 change: 1 addition & 0 deletions sdk/storage/storage-file/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ This library depends on following ES features which need external polyfills load
- `String.prototype.repeat`
- `String.prototype.includes`
- `Array.prototype.includes`
- `Object.assign`
- `Object.keys` (Override IE11's `Object.keys` with ES6 polyfill forcely to enable [ES6 behavior](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Notes))
- `Symbol`

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-file/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
// polyfill service supporting IE11 missing features
// Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys
"https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys|always",
// Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys
"https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys|always",
"dist-test/index.browser.js",
"recordings/browsers/**/*.json"
],
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-file/samples/browserSample.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- Uncomment the following script tag to include polyfill to run the sample in IE11 -->
<!--
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys|always"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys|always"></script>
-->
<!-- Import browser bundle `azure-storage-file.js` or `azure-storage-file.min.js`-->
<script src="./azure-storage-file.js"></script>
Expand Down
1 change: 1 addition & 0 deletions sdk/storage/storage-queue/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- emulator connection string shorthands are supported
- `UseDevelopmentStorage=true`
- (with proxyURI) `UseDevelopmentStorage=true;DevelopmentStorageProxyUri=proxyURI`
- [Breaking] IE11 needs `Object.assign` polyfill loaded.

## 2019.10 12.0.0-preview.4

Expand Down
1 change: 1 addition & 0 deletions sdk/storage/storage-queue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ This library depends on following ES features which need external polyfills load
- `String.prototype.repeat`
- `String.prototype.includes`
- `Array.prototype.includes`
- `Object.assign`
- `Object.keys` (Override IE11's `Object.keys` with ES6 polyfill forcely to enable [ES6 behavior](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Notes))
- `Symbol`

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-queue/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
// polyfill service supporting IE11 missing features
// Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys
"https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys|always",
// Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys
"https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys|always",
"dist-test/index.browser.js",
"recordings/browsers/**/*.json"
],
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-queue/samples/browserSample.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- Uncomment the following script tag to include polyfill to run the sample in IE11 -->
<!--
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.keys|always"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=Symbol,Promise,String.prototype.startsWith,String.prototype.endsWith,String.prototype.repeat,String.prototype.includes,Array.prototype.includes,Object.assign,Object.keys|always"></script>
-->
<!-- Import browser bundle `azure-storage-queue.js` or `azure-storage-queue.min.js`-->
<script src="./azure-storage-queue.js"></script>
Expand Down

0 comments on commit 2158818

Please sign in to comment.