Skip to content

Instantly share code, notes, and snippets.

View MiaofeiWang's full-sized avatar

Miaofei Wang MiaofeiWang

  • Microsoft
View GitHub Profile
@MiaofeiWang
MiaofeiWang / Bug_GetFileAsync_Error.EXCEL.yaml
Last active November 4, 2019 09:48
Create a new snippet from a blank template.
name: Bug_GetFileAsync_Error
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(uploadRun));
function uploadRun() {
@MiaofeiWang
MiaofeiWang / Script for DataLabel formula bug.EXCEL.yaml
Last active March 26, 2020 08:10
Performs a basic Excel API call using TypeScript.
name: Script for DataLabel formula bug
description: Performs a basic Excel API call using TypeScript.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
await Excel.run(async (ctx) => {
@MiaofeiWang
MiaofeiWang / Dynamic Chart.EXCEL.yaml
Last active April 2, 2020 06:32
Create a new snippet from a blank template.
name: Dynamic Chart
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: >
$("#run").click(() => tryCatch(run));
const chartWidth = 500,
name: Test ChartAxisTitle.TextOrientation
description: ''
host: EXCEL
api_set: {}
script:
content: |
$("#setup").click(() => tryCatch(setup));
$("#textOrientation_set").click(() => tryCatch(textOrientation_set));
$("#textOrientation_get").click(() => tryCatch(textOrientation_get));
name: Repro-Assert 'ck81f'
description: ''
host: EXCEL
api_set: {}
script:
content: |
$("#setup").click(() => tryCatch(setup));
$("#run").click(() => tryCatch(run));
async function setup() {
@MiaofeiWang
MiaofeiWang / Perf Test for getDimensionValues.EXCEL.yaml
Last active July 8, 2020 03:01
Create a new snippet from a blank template.
name: Perf Test for getDimensionValues
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
await Excel.run(async (context) => {
@MiaofeiWang
MiaofeiWang / GetDimensionValues Bugbash (1).EXCEL.yaml
Last active August 28, 2020 03:32
This is for bug bash of Chart API: ChartSeries.getDimensionValues
name: GetDimensionValues Bugbash (1)
description: 'This is for bug bash of Chart API: ChartSeries.getDimensionValues'
host: EXCEL
api_set: {}
script:
content: |
$("#add-sample-data").click(() => tryCatch(addSampleData));
$("#setup-line").click(() => tryCatch(createLineChart));
$("#setup-bubble").click(() => tryCatch(createBubbleChart));
$("#add-series").click(() => tryCatch(addSeries));
name: CommonAPI_GetSetSelectedData_Table
description: ''
host: WORD
api_set: {}
script:
content: |
$("#run").click(run);
function run() {
var coercionType = "table";
name: Script for Bug 4909305
description: >-
This script is to repro the bug
https://office.visualstudio.com/OC/_workitems/edit/4909305
host: EXCEL
api_set: {}
script:
content: |
$("#setup").click(() => tryCatch(setup));
$("#run").click(() => tryCatch(run));
name: Sample Script for SolidColor of a ChartFill
description: ''
host: EXCEL
api_set: {}
script:
content: |
$("#setup").click(() => tryCatch(setup));
$("#run").click(() => tryCatch(run));
const sheetName = "Sample";