diff --git a/pages.json b/pages.json
index 7a0a4fe054e2666a3515206fde1e5f31ed7494d3..1b57b70c06f8f9c071b4950cc3d7698a49f94fbe 100644
--- a/pages.json
+++ b/pages.json
@@ -220,6 +220,12 @@
"navigationBarTitleText": "slider-in-swiper"
}
},
+ {
+ "path": "pages/component/slider/slider-maxValue",
+ "style": {
+ "navigationBarTitleText": "slider-maxValue-test"
+ }
+ },
{
"path": "pages/component/picker-view/picker-view",
"group": "0,3,7",
diff --git a/pages/component/slider/slider-maxValue.test.js b/pages/component/slider/slider-maxValue.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..bb03050d836f05dabd2395944d8a020362927524
--- /dev/null
+++ b/pages/component/slider/slider-maxValue.test.js
@@ -0,0 +1,44 @@
+const PAGE_PATH = '/pages/component/slider/slider-maxValue'
+
+describe('touch-events-test', () => {
+
+ // 先屏蔽 android 及 web 平台
+ if (process.env.uniTestPlatformInfo.startsWith('android') || process.env.uniTestPlatformInfo.startsWith('web')) {
+ it('other platform', () => {
+ expect(1).toBe(1)
+ })
+ return
+ }
+
+ if (process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') {
+ it('跳过横屏模式', () => {
+ expect(1).toBe(1)
+ })
+ return
+ }
+
+ let page
+ beforeAll(async () => {
+ page = await program.reLaunch(PAGE_PATH)
+ await page.waitFor(500);
+ })
+
+
+ it('test-slider-max-value', async () => {
+
+ let iconRect = await page.data('sliderRect')
+ let x = iconRect.x + 15
+ let y = iconRect.y + 15
+
+ // 滑动事件
+ await program.swipe({
+ startPoint: {x: x, y: y},
+ endPoint: {x: x+1000,y: y},
+ duration: 300
+ })
+
+ await page.waitFor(600);
+ const ret = await page.data('sliderValue')
+ expect(ret).toBe(10)
+ })
+})
diff --git a/pages/component/slider/slider-maxValue.uvue b/pages/component/slider/slider-maxValue.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..61546076f21fcbd03692d3973a26a0f87d4183dc
--- /dev/null
+++ b/pages/component/slider/slider-maxValue.uvue
@@ -0,0 +1,37 @@
+
+
+ 最大值溢出测试(不能滑动到最右侧)
+
+
+
+
+
+
+
+
+
diff --git a/testSequencer.js b/testSequencer.js
index 1c2f719ed70b3c643bc8a9eefa495b454ce07428..b5c8662d5c6b6c73ecfc5a0c25679a0cc3748278 100644
--- a/testSequencer.js
+++ b/testSequencer.js
@@ -8,6 +8,7 @@ const sortTestFilePaths = [
"pages/component/global-events/touch-events.test.js",
"pages/component/global-events/touch-events-bubbles.test.js",
"pages/component/swiper/swiper2.test.js",
+ "pages/component/slider/slider-maxValue.test.js",
"pages/CSS/overflow/overflow-visible-event.test.js",
"pages/component/rich-text/rich-text-complex.test.js"
]